]> git.wh0rd.org - tt-rss.git/commitdiff
remove no_cache_incantation()
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 12 Apr 2013 10:06:20 +0000 (14:06 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 12 Apr 2013 10:06:20 +0000 (14:06 +0400)
include/functions.php
index.php
prefs.php

index 4ac4e09686e7ba65a7cd1184cddc13b4e5dfb503..31a4c1f2de18a9a6d7af10e3ad3103a941b5568c 100644 (file)
                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\">
index b3f63d461195637517bd38d53835ca9733533b53..2fa8566312ffe51026ce9378d15e30debd4edae0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -50,8 +50,6 @@
 
        login_sequence($link);
 
-       no_cache_incantation();
-
        header('Content-Type: text/html; charset=utf-8');
 
 ?>
index ea531e2c6943eebddb52c67023990cb9fd682674..476ad25782fb4448cb576015f1976ecfa861bcce 100644 (file)
--- 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"