RE: [PHP] Fighting user's cache with an updated image
| From: | Chris Ramsay | Date: | Wed, 02 Feb 2005 16:06:36 +0000 |
| Subject: | RE: [PHP] Fighting user's cache with an updated image | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207897@lists.php.net to get a copy of this message | ||
Check out:
http://uk2.php.net/manual/en/function.header.php
Where you will find:
<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
?>
Read the documentation - it may be just what you need for this problem...
Chris Ramsay
Web Developer - The Danwood Group Ltd.
Tel #: +44 (0)1522 882 288
DDI #: +44 (0)1522 834 482
Fax #: +44 (0)1522 884 488
Email: chris.ramsay@danwood.co.uk
Web : http://www.danwood.co.uk