View Full Version : Up-To-Date-Content
iSlak
10-11-2002, 01:19 AM
How can I make my pages always up to date? I don't want old out of date pages being retrieved from a users cache. I want the PHP document to be downloaded everytime a user requests it.
iSlak
10-11-2002, 01:28 AM
<META http-equiv="Pragma" content="no-cache">
stryper
06-12-2003, 06:53 AM
Originally posted by iSlak
<META http-equiv="Pragma" content="no-cache">
Yeah, but it just work for IE 4.0 and lower.
PipeTen
06-15-2003, 11:59 PM
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
should help.. php generated pages don't send any last-modified headers by default, and sometimes you need the 'browser cache handler' a helping hand.
PipeTen
06-16-2003, 12:01 AM
header("Pragma: no-cache"); also works better than the html syntax version (missed that on first look).
pardicity3
06-16-2003, 03:54 AM
<?
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");
?> That should do what you want.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.