Re: Why my php pages are cached in browsers?
| From: | Krzysztof Dziekiewicz | Date: | Wed, 25 Sep 2002 08:58:24 +0000 |
| Subject: | Re: Why my php pages are cached in browsers? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117538@lists.php.net to get a copy of this message | ||
> In browsers, my php pages are cached. All the code that is returned by php
> are stored. In version 4.1 this not ocurred, anybody can help me?
First: Check if you send headers:
header('Pragma: no-cache');
header('Expires: Thu, 01 Jan 1970 01:00:00 GMT');
header('Cache-Control: no-cache, must-revalidate, private');
Second: If your appache sends "HTTP 1.0" try to change to "HTTP 1.1".
"HTTP 1.0" "do not know" Cache-Control.