diff options
author | Andrew Dolgov <[email protected]> | 2013-03-29 23:09:20 -0700 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-29 23:09:20 -0700 |
commit | f0d7c1ac86bfa39812339440d8d193399c71bde5 (patch) | |
tree | 6e96ba13af03bb3fdffa946f68a03b8df6ee9eef | |
parent | 2472737e2069452b00b3ca67914636ddfab62b96 (diff) | |
parent | dd856b484555d86c2d4a2c30e3fb1d82a50e507d (diff) |
Merge pull request #102 from vapier/master
send Last-Modified header with the local image
-rw-r--r-- | image.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,6 +28,8 @@ if (file_exists($filename)) { header("Content-type: image/png"); + $stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT"; + header("Last-Modified: $stamp", true); echo file_get_contents($filename); } else { header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); |