We actually need to implement this via Middleware, as the Locale Middleware comes later in the process and hinders us from removing the header. Anyway, it's cleaner, since we're not duplicating code

This commit is contained in:
Oliver Falk
2025-09-11 14:22:34 +02:00
parent 4316c2bcc6
commit 5114b4d5d0
4 changed files with 21 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ INSTALLED_APPS.extend(
MIDDLEWARE.extend(
[
"django.middleware.locale.LocaleMiddleware",
"ivatar.middleware.RemoveVaryForImagesMiddleware",
]
)
MIDDLEWARE.insert(