Replaced deprecaded Expires headers by Cache-Control

This commit is contained in:
Marc MAURICE 2013-11-11 10:41:32 +01:00
parent 87057fc33d
commit 884ff7f414
2 changed files with 2 additions and 2 deletions

View file

@ -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';

View 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';