Replaced deprecaded Expires headers by Cache-Control
authorMarc MAURICE <marc-bizou@pub.positon.org>
Mon, 11 Nov 2013 09:41:32 +0000 (10:41 +0100)
committerMarc MAURICE <marc-bizou@pub.positon.org>
Mon, 11 Nov 2013 09:41:32 +0000 (10:41 +0100)
index.php
plugins/viewer/view.php

index 32aa537..708a9e3 100644 (file)
--- 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';
 
index 9ccf5cd..4b2eddd 100644 (file)
@@ -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';