mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 05:11:29 +00:00
no-cache fixes for safari
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user