Re: reloading a webpage?
| From: | Yasuo Ohgaki | Date: | Sun, 11 Mar 2001 02:02:05 +0000 |
| Subject: | Re: reloading a webpage? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43356@lists.php.net to get a copy of this message | ||
> header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
> header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> // always modified
> header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
> header ("Pragma: no-cache"); // HTTP/1.0
FYI.
If you are using PHP4 session, it will be done automatically when you set
session.cache_limmter = 'nocache';
Also read, RFC2068 for HTTP1.1, RFC1945 for HTTP 1.0.
Regards
--
Yasuo Ohgaki
>
> -----Ursprungligt meddelande-----
> Från: Fai [mailto:fai5@hknet.com]
> Skickat: den 10 mars 2001 18:25
> Till: php-general@lists.php.net
> Ämne: [PHP] reloading a webpage?
>
>
> Does any body know how to ensure the web page will clear the previous
> history (cache) and reload the new data when the same webpage re-displays to
> browser?
>
> That is the current webpage content is based on previous webpage input, and
> when we press "back" button to re-enter previous webpage input then we press
> "forward" and this current page will know to update the content and display
> new one to browser.
>
>
>
> --
> 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
>
>
>
> --
> 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
>
>