diff options
author | Andrew Dolgov <[email protected]> | 2007-03-02 12:34:34 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-02 12:34:34 +0100 |
commit | dc56b3b7dac5b3ac757c10971e10aa7a1f09ea47 (patch) | |
tree | 59870f6c818a30afa37f2887838451387a971a38 /functions.php | |
parent | f7c390b8787fbf5cf0fbc3cb8c1396454edb7b28 (diff) |
no-cache fixes for safari
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 49955b63f..f014b8d29 100644 --- a/functions.php +++ b/functions.php @@ -3162,4 +3162,13 @@ require_once "login_form.php"; } + // from http://developer.apple.com/internet/safari/faq.html + function no_cache_incantation() { + header("Expires: Mon, 22 Dec 1980 00:00:00 GMT"); // Happy birthday to me :) + 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 + } + ?> |