Caching preventing users seeing site updates
Posted
by
Timmeh
on Pro Webmasters
See other posts from Pro Webmasters
or by Timmeh
Published on 2011-03-09T08:20:36Z
Indexed on
2011/03/09
16:18 UTC
Read the original article
Hit count: 227
I'm experiencing a caching issue I can't explain. This is happening across browsers, IPs and ISPs. If a user force-refreshes, they see the new content. If they then refresh or return to the page, the old one displays. I've tried using headers via PHP such as
header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
Laid out correctly, at the very beginning of the file. The problem persists. A pan-ISP proxy is unlikely. Suggestions?
© Pro Webmasters or respective owner