It's also worth noting that the security issue mentioned in the docs[1]
makes it unsuitable for many (most?) Django projects, unfortunately, and
brotli is also susceptible to this attack.
It's probably not something I'd be keen on encouraging the use of, though I
also think the idea in principle i
Hi Illia,
I like the idea here, and your design looks sensible at first blush, but I feel
conflicted.
As much as I like the idea of allowing more flexibility and future-proofing
this middleware,
AIUI the gzip middleware is generally discouraged, as it's typically more
efficient to have your we
Hi all,
There is `GZipMiddleware` that compresses response bodies using gzip.
https://github.com/django/django/blob/main/django/middleware/gzip.py
But there are other algorithms supported by browsers (e.g., Brotli).
At the moment, if somebody wants to add support for any of them in a
Django proje