Hello PHP group
I'm trying to prevent Safari from caching pages (e.g. private pages),
so it is not possible to view them when hitting the back button.
I tried it as described on Apple's developer site:
http://developer.apple.com/internet/...q.html#anchor5
using
// PHP example - include at the top of your pages
<? php
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-store, no-cache, must-revalidate, max-
age=0"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
However, this does not work.
Does anyone know a reliable solution?
Many thanks.