note 24422 added to function.clearstatcache
| From: | labrat dot lab at Internethub dot Net | Date: | Thu, 15 Aug 2002 18:24:04 +0000 |
| Subject: | note 24422 added to function.clearstatcache | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35082@lists.php.net to get a copy of this message | ||
Use this to clear most of the browsers' cache:
<?
// Date in the past.
HEADER("Expires: Mon, 1 Jul 2000 01:00:00 GMT");
// always modified.
HEADER("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
// HTTP/1.1
HEADER("Cache-Control: no-store, no-cache, must-revalidate");
HEADER("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
HEADER("Pragma: no-cache");
?>
However, previous loaded image files displayed to screen are not cleared on consecutive reloads
after an update using a FORM POST.
Experimentation is further needed using available technologies. Please submit any postive results to
me for documentation.
--
http://www.php.net/manual/en/function.clearstatcache.php
http://master.php.net/manage/user-notes.php?action=edit+24422
http://master.php.net/manage/user-notes.php?action=delete+24422
http://master.php.net/manage/user-notes.php?action=reject+24422