Thursday, September 6, 2007

Sneaky html caching

My wife has the only Windows computer in the entire house, I use Debian and Ubuntu. Apparently there's a caching issue in IE if it's not told to not cache. I didn't realize this until last night when I just did a random test on the site and found that it kept showing the same video over and over whenever i clicked on the NEXT VIDEO link.

After doing some googling I found the solution, and have listed it here. Sorry, but I don't know how to get the neccessary html code to pass the blogger checker so you'll just have to interpret what I have here and put the "<>" where needed:


-- This goes at the top of the page under the HTML tag --

META HTTP-EQUIV="Pragma" CONTENT="no-cache"
META HTTP-EQUIV="Expires" CONTENT="-1"

-- And this goes at the bottom just above the /HTML tag --

META HTTP-EQUIV="Pragma" CONTENT="no-cache"
META HTTP-EQUIV="Expires" CONTENT="-1"


Hope that helps the experience and, ultimately, keeps people coming back. I continue to tinker with the site to try to make it better and better, so keep yer eyes open for more updates and improvements. It's a long way from where it was on the first day.

0 Comments:

Post a Comment

<< Home