diff options
author | deva <deva> | 2010-01-28 18:50:12 +0000 |
---|---|---|
committer | deva <deva> | 2010-01-28 18:50:12 +0000 |
commit | 39453dcd2a09db7872919c8139f13e845c1a8df1 (patch) | |
tree | bb9e0f6ffba65a41a15928bcbc630b0db96bd4ff | |
parent | 9c109eb39b7ff60cf1411c2bd6c648b4c66fdbae (diff) |
Add last-modified field to http header.
-rw-r--r-- | utils/imagecache.php | 2 |
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); } |