]> git.joonet.de Git - adminer.git/commitdiff
Add Cache-Control: immutable to static files
authorJakub Vrana <jakub@vrana.cz>
Wed, 28 Sep 2016 04:53:11 +0000 (21:53 -0700)
committerJakub Vrana <jakub@vrana.cz>
Wed, 28 Sep 2016 04:53:11 +0000 (21:53 -0700)
adminer/file.inc.php
changes.txt

index 219fac01edf462bc6935d6f5824d795bf5ea420d..edd44f99216c01d61cdf0804749cd95c5343b257 100644 (file)
@@ -6,6 +6,7 @@ if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) {
 
 header("Expires: " . gmdate("D, d M Y H:i:s", time() + 365*24*60*60) . " GMT");
 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
+header("Cache-Control: immutable");
 
 if ($_GET["file"] == "favicon.ico") {
        header("Content-Type: image/x-icon");
index dde42ec9918b73956289dd76fc558b31b5f7ac02..bf19bf308bc36887d74f89f656f05a56bb07e46c 100644 (file)
@@ -1,6 +1,7 @@
 Adminer 4.2.6-dev:
 Add accessibility labels to Create Table fields
 Make maxlength in edit fields a soft limit
+Add Cache-Control: immutable to static files
 
 Adminer 4.2.5 (released 2016-06-01):
 Fix remote execution in SQLite query