HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Does this cache header even make sense? (http://www.howtoforge.com/forums/showthread.php?t=51848)

talkingnews 11th March 2011 16:55

Does this cache header even make sense?
 
Just a quick random question:

Here's a header:

11/03/2011 15:25:56.005 Cache-Control: no-cache, x-wms-content-size=4129462, max-age=86399, user-public, must-revalidate, proxy-public, proxy-revalidate

Doesn't some of this cancel each other out? I'm trying to work out why my browser/ISP is getting a cached version. Provider says it shouldn't be caching, but it is, and surely user-public, proxy-public cancels out no-cache?

Or at least, that's what I think from having read the docs.

falko 11th March 2011 17:27

I'm not sure about user-public and proxy-public, but max-age=86399 tells browsers to cache content for 86399 seconds (however, not all browsers support max-age).

If you don't want your content to be cached, remove the max-age; in addition to that, set an Expires header with a date in the past.


All times are GMT +2. The time now is 15:49.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.