How do I keep a page from caching in I.E
| From: | DonPro | Date: | Wed, 04 Sep 2002 14:58:30 +0000 |
| Subject: | How do I keep a page from caching in I.E | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115181@lists.php.net to get a copy of this message | ||
Hi,
Using I.E. 5.5. I can't seem to keep a page from caching. When I click on
the browser BACK button, I get the cached page so I have to click on Refresh
to get the actual page content. I've placed the following at the top of the
HTML file but it doesn't seem to do anything. Any help would be appreciated.
<?PHP
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");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>