]> git.wh0rd.org Git - tt-rss.git/commitdiff
send Last-Modified header with the local image
authorMike Frysinger <vapier@gentoo.org>
Fri, 29 Mar 2013 21:36:51 +0000 (17:36 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 29 Mar 2013 21:45:23 +0000 (17:45 -0400)
image.php

index cccda64b73380d0336aefedbff33f19a6c0fa0c1..36da375aabbde9e4055027f2bb9ba3999b349649 100644 (file)
--- a/image.php
+++ b/image.php
@@ -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");