From 4cbab3169cd87cabb5c2eb6697703ca61f8e21c6 Mon Sep 17 00:00:00 2001 From: Murdo <109604278+murdo-moj@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:28:07 +0100 Subject: [PATCH] Added GZip middleware for http compression (#909) --- core/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/settings.py b/core/settings.py index c9deaa85..beab1b6c 100644 --- a/core/settings.py +++ b/core/settings.py @@ -54,6 +54,7 @@ INSTALLED_APPS.append("azure_auth") MIDDLEWARE: list[str] = [ + "django.middleware.gzip.GZipMiddleware", "django_prometheus.middleware.PrometheusBeforeMiddleware", "django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware",