When back-button is used, my site displays the dreaded ‘Webpage is Expired’ screen (and when the page is reloaded all form values are lost). I’m trying to avoid this.
I’ve tried adding the ‘Cache-control: public’ HTTP header, and this seemed to work well on my localhost wamp server.
header( ‘Cache-control: public’);
However on my dreamhost server, it does not work. I used ieHTTPHeaders to display the HTTP headers, and found that there are two Cache-control HTTP headers, the one I added (‘Cache-control: public’), as well as a default one (‘Cache-control: max-age=0, no-cache, no-store’).
[font=Courier]HTTP/1.1 200 OK
Date: Fri, 13 May 2011 03:25:26 GMT
Set-Cookie: PHPSESSID=CyOQvQdu8GKp%2C93loU7yX1; path=/
Cache-Control: max-age=0, no-cache, no-store
Keep-Alive: timeout=2, max=100
Does any one know where this extra ‘Cache-control: max-age=0, no-cache, no-store’ HTTP header is coming from and how to remove it?