Re: Why "no-cache" not work?
| From: | Martin Neimeier | Date: | Mon, 04 Sep 2000 10:15:09 +0000 |
| Subject: | Re: Why "no-cache" not work? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15092@lists.php.net to get a copy of this message | ||
hp wrote:
>
> Hello all:
> I write a php script which have the follow statements to disable browser's
> cache:
>
> <?
> header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> header ("Cache-Control: no-cache , no-cache");
> header ("Pragma: no-cache");
>
> ....
> ?>
>
> but it seems to be work in POST, but not work in GET. that is, after you
> view the
> page which have these statements, you can also see it by clicking the BACK
> or FORWORD
> button. (I hope it can not be see again)
> Anybody can explain it? and how to resolve it?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
Hi,
do:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
header("Cache-Control: no-cache, must-revalidate");
It works for me.
cu
Martin
--
Martin Neimeier
Ingenieur-Buero Neimeier
Schwarzach / Germany
mailto:nei@ibn.de / http://www.ibn.de (under heavy reconstruction)
Tel:+49(6262)912344 / Fax:+49(6262)912347