Console: Enable compression of js and svg files

and lower size threshold, now that we have some larger js/svg resources
This commit is contained in:
zzz
2024-07-25 08:47:16 -04:00
parent 07b64ac7d6
commit bdf9d67a06

View File

@@ -42,14 +42,12 @@ public class HostCheckHandler extends GzipHandler
_context = ctx;
_portMapper = ctx.portMapper();
_listenHosts = new HashSet<String>(8);
setMinGzipSize(64*1024);
setMinGzipSize(32*1024);
if (_context.getBooleanPropertyDefaultTrue(PROP_GZIP)) {
addIncludedMimeTypes(
// our js is very small
//"application/javascript", "application/x-javascript",
"application/javascript", "application/x-javascript",
"application/xhtml+xml", "application/xml",
// ditto svg
//"image/svg+xml",
"image/svg+xml",
"text/css", "text/html", "text/plain"
);
} else {