Re: no reload
| From: | Ron | Date: | Mon, 11 Oct 2004 15:20:13 +0000 |
| Subject: | Re: no reload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199118@lists.php.net to get a copy of this message | ||
Thanx,
but... don't the headers control the browser's caching?
Gal wrote:
add the following headers. Important: Make sure they are located in your script before you print to the browser !!! <?php // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.0 header("Pragma: no-cache"); ?> Cheers, Gal Ron wrote:Hi, In working locally (Linux, Apache/2.0.49, PHP4.3.4) I can not reload the scipt pages. When I hit the reload button, the same page is displayed. I tried to use another browser - and it seems the page is cached on the server side. Any clue how to disable that? Cheers, Ron