"no-store" and "no-cache" = no files in browser"s cache ?
| From: | Bart Coninckx | Date: | Thu, 09 Sep 2004 17:38:29 +0000 |
| Subject: | "no-store" and "no-cache" = no files in browser"s cache ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-196271@lists.php.net to get a copy of this message | ||
Hi!
Am I assuming correctly that if you add this in the beginning of a PHP
page
that the browser will not store files for that page to its cache?
<?php
header('Cache-Control: no-store, no-cache, must-revalidate'); //
HTTP/1.1
header('Cache-Control: post-check=0, pre-check=0'); // damnable IE5
header('Expires: Wed, 16 Nov 1977 10:00:00 CET'); // date in past
header('Last-Modified: '.date('r')); // right -now-
header('Pragma: no-cache'); // HTTP/1.0
?>
I tried it, but the sensitive files I want to avoid from being available
on
the client's harddrive, still get downloaded and saved in the "Temporary
Internet Files" for IE6. I also tried Mozilla, but I see changes in the
cache as well.
Comments would be greatly appreciated!
Thx!
Bart