From: Mike Frysinger Date: Fri, 29 Mar 2013 21:36:51 +0000 (-0400) Subject: send Last-Modified header with the local image X-Git-Tag: 1.7.6~145^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=dd856b484555d86c2d4a2c30e3fb1d82a50e507d;p=tt-rss.git send Last-Modified header with the local image --- diff --git a/image.php b/image.php index cccda64b..36da375a 100644 --- 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");