From af25827ff4d9f003ce1e7a79b7ff9e4ab79d73a5 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 27 Sep 2016 21:53:11 -0700 Subject: [PATCH] Add Cache-Control: immutable to static files --- adminer/file.inc.php | 1 + changes.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/adminer/file.inc.php b/adminer/file.inc.php index 219fac01..edd44f99 100644 --- a/adminer/file.inc.php +++ b/adminer/file.inc.php @@ -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"); diff --git a/changes.txt b/changes.txt index dde42ec9..bf19bf30 100644 --- a/changes.txt +++ b/changes.txt @@ -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