Entry
Why doesn't the PHP sample script for no-cache disable caching in IE-6?
Feb 8th, 2002 09:20
Ron Holland,
The read order (top > down) may make a difference. Re-arrange the
headers as they appear in the example below. This effectively disabled
page caching in IE-6 running in OS-Windows ME.
EXAMPLE:
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
/* Date in the past*/
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
/* always modified*/
header("Cache-Control: no-cache, no-store, must-revalidate");
/* HTTP/1.1 */read