mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:35:55 +00:00
send Last-Modified header with the local image
This commit is contained in:
@@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
if (file_exists($filename)) {
|
if (file_exists($filename)) {
|
||||||
header("Content-type: image/png");
|
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);
|
echo file_get_contents($filename);
|
||||||
} else {
|
} else {
|
||||||
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
||||||
|
|||||||
Reference in New Issue
Block a user