]> git.joonet.de Git - adminer.git/commitdiff
Cache static files more
authorJakub Vrana <jakub@vrana.cz>
Tue, 11 Sep 2012 16:16:51 +0000 (09:16 -0700)
committerJakub Vrana <jakub@vrana.cz>
Tue, 11 Sep 2012 16:16:51 +0000 (09:16 -0700)
adminer/file.inc.php

index bad22149d2b8cafa77c6df8fa954362db8cf8b14..6a137e1b5c6f82be1a49e3c116826fa169a8a0c7 100644 (file)
@@ -1,5 +1,11 @@
 <?php
+if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) {
+       header("HTTP/1.1 304 Not Modified");
+       exit;
+}
+
 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");
 
 if ($_GET["file"] == "favicon.ico") {
        header("Content-Type: image/x-icon");