summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-12-18 16:37:13 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-12-18 16:37:13 +0100
commit7fc4107e8fafbd3ffbec24bfa9ad22f6dd0f9852 (patch)
tree9e5d425be3bfaa4eea1534a2bd382e1ed7f69fde /application
parente6c6a975abf5c6cfe4e2be702ac6d2a62c5f9555 (diff)
use the same date for if-modified-since everywhere
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/models/file_mod.php3
1 files changed, 1 insertions, 2 deletions
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") {