Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Forcing a Cache Refresh
01-06-2011, 03:02 PM #1
- Join Date
- Feb 2009
- Thanked 0 Times in 0 Posts
Forcing a Cache Refresh
We're having a big issue with our site. We use .htaccess to specify mod headers and expires in order to stipulate caching of various file types. Most of these are fairly long expire times (i.e. several months).
New visitors to the site have no problem -- and the new code works fine.
But we've found that many visitors don't think to reload the page -- and so we've had complaints that the site isn't working.
Clearly, the solution is to force a cache refresh. But so far, every attempt we've made to do this has failed.
At the same time, we got rid of our old cache control code from htaccess and replaced it with new code that we thought would force everyone's browser to use the fresh pages and not the cached versions, but that also hasn't worked. Here's what we currently have at the top of htaccess:
<IfModule mod_headers.c> Header set Cache-Control "private, must-revalidate" Header unset Expires Header unset Last-Modified FileETag None Header unset Pragma </IfModule>