]> git.joonet.de Git - adminer.git/commitdiff
Cache busting for adminer.css
authorJonathon Sim <jonathon.sim@zeald.com>
Mon, 1 Apr 2019 22:42:55 +0000 (23:42 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 18 May 2019 15:29:33 +0000 (17:29 +0200)
adminer/include/adminer.inc.php
changes.txt

index eba6d26c28b2ecea03629d0fdaf2bdf66ea0681b..09f9add880cd63f179be2345c4ce5b2617176d03 100644 (file)
@@ -108,7 +108,7 @@ class Adminer {
                $return = array();
                $filename = "adminer.css";
                if (file_exists($filename)) {
-                       $return[] = $filename;
+                       $return[] = "$filename?v=" . crc32(file_get_contents($filename));
                }
                return $return;
        }
index fc1f48cc5a865915bffaff4730d826b84d68b679..e4c5446e2dd5382b921aac5e5c8e92b2968ccde2 100644 (file)
@@ -2,6 +2,7 @@ Adminer 4.7.2-dev:
 Do not attempt logging in without password (bug #676)
 Stretch footer over the whole table width (bug #624)
 Allow overwriting tables when copying them
+Cache busting for adminer.css
 MySQL: Fix creating users and changing password in MySQL 8 (bug #663)
 MySQL: Pass SRID to GeomFromText