Re: Problems with caching and headers.

From: Date: Tue, 11 Jul 2006 11:31:28 +0000
Subject: Re: Problems with caching and headers.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-239310@lists.php.net to get a copy of this message
Mathijs wrote:
Jochem Maas wrote:
Mathijs wrote:
Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 -Pragma: no-cache All those i didn't set my self. Does PHP set these or something?
maybe it was php (check your session settings and read the relevant parts of the manual regarding session related headers) maybe it was a piece of 3rd party code. may it was 'something' ;-) most likely it's the session extension doing this.
And you are right again :). Thanks again. This was a real pain in the ass. Because IE didn't sent the If-Last-Modified and/or if-none-match if one of those headers are sent. Thank you.
Thx in advanced.
Well it seems its working kinda. Now i have a problem with the ETag. Internet Explorer seems to forget this when the content is compressed. This because of the Vary header apparently. Is there a fix for this? Or a workaround? Thx. --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0628-1, 07-10-2006 Tested on: 07-11-2006 13:33:12 avast! - copyright (c) 1988-2006 ALWIL Software. http://www.avast.com

« previous php.general (#239310) next »