RE: Browser on server doesn't refresh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike Tuller wrote:
> locally, everything works. When I put the script on my OS X Server  
> and run the script, and click on the link to go back, the information  
> is not updated. I have to refresh the page.

> PHP 5.04 on my laptop and 4.3.11 on the server. Is there some setting  
> in Apache that would cause the page not to refresh?

It sounds to me that there is a caching problem somewhere.

Try adding the following to the top of the page:
<?
  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-store, no-cache, must-revalidate");
  header("Cache-Control: post-check=0, pre-check=0", false);
  header("Cache-Control: private");
  header("Pragma: no-cache");
?>

It will tell any caching server and/or browser not to cache the page

Albert
PS List replies only please!

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date: 2006/01/09
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux