Re: php shows the cached page always
| From: | Alexander Weber | Date: | Wed, 09 Apr 2003 10:56:39 +0000 |
| Subject: | Re: php shows the cached page always | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143041@lists.php.net to get a copy of this message | ||
there are some more, works with: IE 5.5, Netscape 4 - 7, Opera 5 and 6
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("Pragma: no-cache");
--
Cheers,
Alex
ICQ: 46858764
DynDNS: nodeejay.mine.nu
Win2k SP3, Apache 2.0.44, PHP 4.3.1 as Apache Module with Zend Optimizer
2.1.0, MySQL 3.23.55MAX, stunnel 4.04 on x86-pc-mingw32-gnu with OpenSSL
0.9.7 31 Dec 2002,
Everybody is using M$Windows and everybody says its bullshit - so if its
bullshit, simply, don't use it.
"Denis L. Menezes" <menezesd@singnet.com.sg> schrieb im Newsbeitrag
news:003801c2fdf2$dcb29800$1e02a8c0@pcdenisxp...
Hello friends,
I always get the PHP cached page. Then I always have to click 'Refresh'
button on the browser to get the latest page. Also sometimes, even when I
go to a new computer and look for my php page for the first time, it still
shows an old page(page with the last queried data and not the latest query
results).
What should I do for the fresh php page to be seen everytime without the
need to "refresh" the page?
Thanks
Denis