Replaced deprecaded Expires headers by Cache-Control
This commit is contained in:
parent
87057fc33d
commit
884ff7f414
2 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue