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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to