About "no-cache"
| From: | science | Date: | Tue, 21 Aug 2001 07:36:59 +0000 |
| Subject: | About "no-cache" | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8982@lists.php.net to get a copy of this message | ||
Hi all,
I am using cookie to write a counting page but when the page is refreshed,
it will increase by 1 automatically.
According to this problem, I used following lines but it doesn't work
----------------------------------------------------------------------------
--
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-cache, must-revalidate");
header ("Pragma: no-cache");
----------------------------------------------------------------------------
---
even I used html script
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
Well, Is there anyone who knows how to prevent the page to be cached?
Thanks a lot