I'm on an apache 2 web server, and I'm serving the following site: torchbearersakron.com
Everywhere except IE7/Vista IE8/Vista the cache seems to work wonderfully. On these two systems however, something isn't right, and the entire page loads from the server every time.
Is there something I can do in my headers or meta tags that would fix it? Is there something I am doing that is breaking it?
Presumably the cache settings of torchbearersakron.com have been changed in the 4 months since you've asked this question, since this is the response I get from the home page:
If you wanted to make this cacheable, you'd get rid of the
Pragma
header, and change theExpires
to the date at which this page expires, and changeCache-Control
to specify the max-age to cache the page; for example, to cache for 1 hour:If you're using apache2, use mod_cache for this.
But if you set up your cache headers correctly and still see ie not using its cache, check the "Temporary Internet Files" setting in ie:
If the "Every time I visit the webpage" radio button is selected instead of "Automatically", it doesn't matter what cache headers you send -- ie will make a new request to the server for it every time you navigate to your page through the browser ui.
Also note that the
Vary
header can also screw up ie's caching model (see http://blogs.msdn.com/ieinternals/archive/2009/06/17/Vary-Header-Prevents-Caching-in-IE.aspx).Vary: Accept-Encoding
should be fine, though.