summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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") {