From 7fc4107e8fafbd3ffbec24bfa9ad22f6dd0f9852 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 18 Dec 2011 16:37:13 +0100 Subject: use the same date for if-modified-since everywhere Signed-off-by: Florian Pritz --- application/models/file_mod.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'application') diff --git a/application/models/file_mod.php b/application/models/file_mod.php index f2a1b21f6..db3fa6252 100644 --- a/application/models/file_mod.php +++ b/application/models/file_mod.php @@ -202,7 +202,6 @@ class File_mod extends CI_Model { // MODIFIED SINCE SUPPORT -- START // helps to keep traffic low when reloading - $filedate = filectime($file); $etag = strtolower($filedata["hash"]."-".$filedata["date"]); $modified = true; @@ -239,7 +238,7 @@ class File_mod extends CI_Model { // this is mainly used for compatibility $mode = $this->extension_aliases($mode); - header("Last-Modified: ".date('D, d M Y H:i:s', $filedate)." GMT"); + header("Last-Modified: ".date('D, d M Y H:i:s', $filedata["date"])." GMT"); header('Etag: "'.$etag.'"'); if ($mode == "qr") { -- cgit v1.2.3-24-g4f1b