﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34916	Add support for brotli compression	Tom Carrick	nobody	"Now that the BREACH attack is mitigated in the `GZipMiddleware` I wonder if it's time to consider adding brotli support.

I think the best way would be to create a new `CompressionMiddleware` that uses brotli if it's both installed and the client accepts it, otherwise gzip if the client accepts it, and deprecate `GZipMiddleware`.

There is a third party package, [https://github.com/illagrenan/django-brotli django-brotli] but it seems a bit unmaintained. It is out of date - it doesn't support compressing streaming responses as the brotli Python bindings didn't support it, but it now does. It also doesn't have any BREACH mitigation. For mostly this reason I'd like to bring it into core as it's a bit security sensitive and good to have first class support for this."	New feature	closed	HTTP handling	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
