note 12410 deleted from function.header by jimw
| From: | jimw@php.net | Date: | Wed, 31 Oct 2001 21:57:58 +0000 |
| Subject: | note 12410 deleted from function.header by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19773@lists.php.net to get a copy of this message | ||
Here's a better way to prevent images from showing up in the browser's cache:
<?php
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-cache, must-revalidate");
header ("Pragma: no-cache");
header("Content-type: image/jpeg");
readfile("test.jpg");
?>
The technique I offered two entries above only works with very specific image files.