1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 00:01:33 +00:00

Merge pull request #102 from vapier/master

send Last-Modified header with the local image
This commit is contained in:
Andrew Dolgov
2013-03-29 23:09:20 -07:00

View File

@@ -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");