RE: [PHP] Problem with IE 6.0
| From: | Edward Kay | Date: | Wed, 25 Jun 2008 15:00:15 +0000 |
| Subject: | RE: [PHP] Problem with IE 6.0 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-275942@lists.php.net to get a copy of this message | ||
> I have a problem with the cache in Internet Explorer version 6.0
>
> When I put these lines in the page
>
> header ("Expires: Mon, 1 Jan 1997 01:00:00 GMT");
> header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> header ("Cache-Control: no-cache, must-revalidate");
> header ("Pragma: no-cache");
>
> Internet explorer stills make the cache to the page, is there any
> solution to these problem and how is it?
These are the headers I send when I want to prevent any caching:
header("Expires: Mon, 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, post-check=0,
pre-check=0");
header("Pragma: no-cache");
These work fine for me in all browsers.
HTH,
Edward