no-cache headers
| From: | Phil Ewington | Date: | Sat, 05 Jan 2002 11:21:38 +0000 |
| Subject: | no-cache headers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85176@lists.php.net to get a copy of this message | ||
Hi,
I am new to PHP and am having problems with no-cache headers, I have the
following code added as the first line of code in the page...
<?
header("Expires: Mon, 01 Jan 1997 00:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
?>
A combination of no-cache headers usually does the trick, well in ColdFusion
anyway :o), yet this code still shows the wrong images after an upload until
a refresh of the browser is performed. Have I done something wrong or are
headers not very reliable in PHP?
TIA
-----------------------------------
Phil Ewington - Technical Director
-----------------------------------
43 PLC
35 Broad Street, Wokingham
Berkshire RG40 1AU
-----------------------------------
T: +44 (0)118 978 9500
F: +44 (0)118 978 4994
W: http://www.43plc.com
-----------------------------------