From 91dee697f9b7bd95797921250e183bc2ae7105b2 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 20 Feb 2026 08:54:10 +0100 Subject: [PATCH] UI - Content compression was not obeying FLASK_ENABLE_COMPRESSION, should be off by default due to a memory leak in flask_compress & socket.io --- changedetectionio/flask_app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index f7dded604..9aa9c8e53 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -78,10 +78,9 @@ if strtobool(os.getenv("FLASK_ENABLE_COMPRESSION")): app.config['COMPRESS_MIMETYPES'] = ['text/html', 'text/css', 'text/javascript', 'application/json', 'application/javascript', 'image/svg+xml'] # Use gzip only - smaller memory footprint than zstd/brotli (4-8KB vs 200-500KB contexts) app.config['COMPRESS_ALGORITHM'] = ['gzip'] + compress = FlaskCompress() + compress.init_app(app) -compress = FlaskCompress() - -compress.init_app(app) app.config['TEMPLATES_AUTO_RELOAD'] = False