summaryrefslogtreecommitdiff
path: root/utils/imagecache.php
diff options
context:
space:
mode:
authordeva <deva>2010-01-28 18:50:12 +0000
committerdeva <deva>2010-01-28 18:50:12 +0000
commit39453dcd2a09db7872919c8139f13e845c1a8df1 (patch)
treebb9e0f6ffba65a41a15928bcbc630b0db96bd4ff /utils/imagecache.php
parent9c109eb39b7ff60cf1411c2bd6c648b4c66fdbae (diff)
Add last-modified field to http header.
Diffstat (limited to 'utils/imagecache.php')
-rw-r--r--utils/imagecache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/imagecache.php b/utils/imagecache.php
index ba5fcb2..3ac51b9 100644
--- a/utils/imagecache.php
+++ b/utils/imagecache.php
@@ -87,11 +87,11 @@ function getCachedImage($filename, $maxwidth, $maxheight)
}
}
-
header('Content-Description: File Transfer');
header('Content-Type: image/jpeg');
header('Content-Length: ' . filesize($fullfilename));
header('Content-Disposition: inline; filename=' . basename($filename));
+ header('Last-Modified: ' . date("F d Y H:i:s.", filemtime($filename)));
readfile($fullfilename);
}