mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-03-28 17:43:06 +01:00
Enable Gzip compression for HTTP responses
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user