|
|
Author |
|
Message | |
|
jema Downsizer Moderator
Joined: 28 Oct 2004 Posts: 28238 Location: escaped from Swindon
|
|
|
|
|
tahir
Joined: 28 Oct 2004 Posts: 45674 Location: Essex
|
|
|
|
|
jema Downsizer Moderator
Joined: 28 Oct 2004 Posts: 28238 Location: escaped from Swindon
|
|
|
|
|
tahir
Joined: 28 Oct 2004 Posts: 45674 Location: Essex
|
|
|
|
|
jema Downsizer Moderator
Joined: 28 Oct 2004 Posts: 28238 Location: escaped from Swindon
|
|
|
|
|
dougal
Joined: 15 Jan 2005 Posts: 7184 Location: South Kent
|
|
|
|
|
tahir
Joined: 28 Oct 2004 Posts: 45674 Location: Essex
|
|
|
|
|
jema Downsizer Moderator
Joined: 28 Oct 2004 Posts: 28238 Location: escaped from Swindon
|
|
|
|
|
dougal
Joined: 15 Jan 2005 Posts: 7184 Location: South Kent
|
|
|
|
|
jema Downsizer Moderator
Joined: 28 Oct 2004 Posts: 28238 Location: escaped from Swindon
|
|
|
|
|
dougal
Joined: 15 Jan 2005 Posts: 7184 Location: South Kent
|
Posted: Fri Apr 01, 05 5:22 pm Post subject: |
|
This is the sort of thing I had in mind (from an Apple Developer page re Safari, Apple's own mozilla-based browser) : ----
5. How do I prevent my pages (and cookies) from being cached in Safari?
Safari achieves much of its performance through efficient use of content caching. If you have pages you wish to prevent from being cached, including those that write out cookies, be sure to write the following headers when serving your pages:
// 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
?>
// JSP example - call before writing page content
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching on a proxy server as well |
|
|
|
|
tahir
Joined: 28 Oct 2004 Posts: 45674 Location: Essex
|
|
|
|
|
jema Downsizer Moderator
Joined: 28 Oct 2004 Posts: 28238 Location: escaped from Swindon
|
|
|
|
|
dougal
Joined: 15 Jan 2005 Posts: 7184 Location: South Kent
|
|
|
|
|
jema Downsizer Moderator
Joined: 28 Oct 2004 Posts: 28238 Location: escaped from Swindon
|
|
|
|
|
|