mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Compress served static files
This commit is contained in:
@@ -11,6 +11,8 @@ if (substr(VERSION, -4) != '-dev') {
|
||||
header("Cache-Control: immutable");
|
||||
}
|
||||
|
||||
@ini_set("zlib.output_compression", 1); // @ - may be disabled
|
||||
|
||||
if ($_GET["file"] == "default.css") {
|
||||
header("Content-Type: text/css; charset=utf-8");
|
||||
echo lzw_decompress(compile_file('../adminer/static/default.css;../externals/jush/jush.css', 'minify_css'));
|
||||
|
Reference in New Issue
Block a user