summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-12 14:06:20 +0400
committerAndrew Dolgov <[email protected]>2013-04-12 14:06:20 +0400
commitb68a266a734193dfeee8d9f52b9888b2798eb50c (patch)
tree30ba951b4de563d880e05a5b61072ff296a7bcbd
parent9bfda43e775ff23d980795363c3c792fd6d8b89d (diff)
remove no_cache_incantation()
-rw-r--r--include/functions.php9
-rw-r--r--index.php2
-rw-r--r--prefs.php2
3 files changed, 0 insertions, 13 deletions
diff --git a/include/functions.php b/include/functions.php
index 4ac4e0968..31a4c1f2d 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2929,15 +2929,6 @@
exit;
}
- // 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
- }
-
function format_warning($msg, $id = "") {
global $link;
return "<div class=\"warning\" id=\"$id\">
diff --git a/index.php b/index.php
index b3f63d461..2fa856631 100644
--- a/index.php
+++ b/index.php
@@ -50,8 +50,6 @@
login_sequence($link);
- no_cache_incantation();
-
header('Content-Type: text/html; charset=utf-8');
?>
diff --git a/prefs.php b/prefs.php
index ea531e2c6..476ad2578 100644
--- a/prefs.php
+++ b/prefs.php
@@ -25,8 +25,6 @@
login_sequence($link);
- no_cache_incantation();
-
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"