From 884ff7f41492f93cf5398b6d47baec1f34804c03 Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Mon, 11 Nov 2013 10:41:32 +0100 Subject: [PATCH] Replaced deprecaded Expires headers by Cache-Control --- index.php | 2 +- plugins/viewer/view.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 32aa537..708a9e3 100644 --- a/index.php +++ b/index.php @@ -79,7 +79,7 @@ else ///// template starts here ///// header('Content-Type: text/html; charset=utf-8'); -header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600)); +header('Cache-Control: max-age=3600'); require 'template.php'; diff --git a/plugins/viewer/view.php b/plugins/viewer/view.php index 9ccf5cd..4b2eddd 100644 --- a/plugins/viewer/view.php +++ b/plugins/viewer/view.php @@ -77,7 +77,7 @@ $firefox = strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== false; ///// template starts here ///// header('Content-Type: text/html; charset=utf-8'); -header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600)); +header('Cache-Control: max-age=3600'); require 'template.php'; -- 1.7.10.4