Skip to content

Commit

Permalink
Add Cache-Control: immutable to static files
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Sep 28, 2016
1 parent 9872229 commit af25827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions adminer/file.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

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");
Expand Down
1 change: 1 addition & 0 deletions changes.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit af25827

Please sign in to comment.