Enable Gzip compression for HTTP responses

This commit is contained in:
Lloyd
2026-02-01 22:36:37 +00:00
parent 612fc82b34
commit 7103103cf7

View File

@@ -284,6 +284,8 @@ class HTTPStatsServer:
config = {
"/": {
"tools.sessions.on": False,
"tools.gzip.on": True,
"tools.gzip.mime_types": ["application/json", "text/html", "text/plain"],
# Ensure proper content types for static files
"tools.staticfile.content_types": {
'js': 'application/javascript',