Re: caching madness
| From: | John Lim | Date: | Thu, 20 Sep 2001 16:12:14 +0000 |
| Subject: | Re: caching madness | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68008@lists.php.net to get a copy of this message | ||
Hello Christian,
Try this:
Header("Cache-control: private, no-cache");
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); # Past date
Header("Pragma: no-cache");
The explaination of how it works is here:
http://php.weblogs.com/stories/storyReader$550
Let me if it works, or if you can improve on this.
Bye, John
"Christian Haines" <cmh@cobweb.com.au> wrote in message
news:B7D02C5E.BA87%cmh@cobweb.com.au...
> hi all,
>
> i have tried everything not to get a page to cache..
>
> server-side:
>
> 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')
>
> client-side:
>
> <meta http-equiv = "Expires" content = "Tue, 20 Aug 1996 14:25:27
> GMT">
>
>
> does anyone have any idea how to make sure pages do not cache?
>
>
> many thanks in advance,
> christian
>