summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-10-19 13:44:18 +0300
committerAndrew Dolgov <[email protected]>2018-10-19 13:44:18 +0300
commitc62fa6c187285713c41735ffa0c3f8a996671d73 (patch)
tree28fc062f283ac1c6509ac10d1b0350706e627b52
parentfb7a24aca2e2b3719ea808b924c71594d84bbf4e (diff)
cover: add last-modified
-rw-r--r--backend.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 7fb610e..4f4b402 100644
--- a/backend.php
+++ b/backend.php
@@ -40,6 +40,8 @@
header("Content-type: " . mime_content_type($filename));
header('Cache-control: max-age=' . STATIC_EXPIRES);
header("Expires: " . gmdate("D, d M Y H:i:s \G\M\T", time()+STATIC_EXPIRES));
+ header("Last-Modified: " .
+ gmdate("D, d M Y H:i:s \G\M\T", filemtime($filename)));
readfile($filename);
} else {