I'm using the following on a page to prevent browser cacheing. The page is constantly updated and this is meant to force a refresh:
Is it only the dynamic, php generated parts of the page that should be prevented from cacheing by using the above code, or is it the entire contents of the page including the images?
Everything still seems to be cacheing in my browser (IE6).
Thanks.
Code:
<?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-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
Is it only the dynamic, php generated parts of the page that should be prevented from cacheing by using the above code, or is it the entire contents of the page including the images?
Everything still seems to be cacheing in my browser (IE6).
Thanks.