|
Posted by "Albert" on 01/10/06 14:12
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
[Back to original message]
|