W
Werschinger
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've
seen it work on many pages, especially banking pages.
I tried it as described on Apple's developer site:
http://developer.apple.com/internet/safari/faq.html#anchor5
using (in PHP)
// PHP example - include at the top of your pages
<? 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,
max-
age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
However, this does not work.
Does anyone know a reliable solution?
Many thanks.
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've
seen it work on many pages, especially banking pages.
I tried it as described on Apple's developer site:
http://developer.apple.com/internet/safari/faq.html#anchor5
using (in PHP)
// PHP example - include at the top of your pages
<? 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,
max-
age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
However, this does not work.
Does anyone know a reliable solution?
Many thanks.