Hello everyone and sorry for the late response. I'm the author of 
django-brotli package. Creating a single middleware that can handle 
multiple algorithms sounds like a great idea to me. If you need any kind of 
assistance and/or code from django-brotli package, I'll be happy to help 
you.

Vašek Dohnal

Dne pátek 14. září 2018 10:01:00 UTC+2 Johannes Hoppe napsal(a):
>
> Hi there,
>
> we all know the the wonderful GZip middleware that allows response 
> compression. Which is great especially if you are serving large responses.
>
> Now gzip is only one of many supported encoding types supported by many 
> browsers. The coolest kid on the block seems to be brotli right now.
> It is both faster and smaller in most cases then gzip and has been 
> standardized in https://www.ietf.org/rfc/rfc7932.txt
>
> Of course there is already a package that adds brotli support to Django:
> https://pypi.org/project/django-brotli/
>
> But I would propose to refactor the GZip middleware into something like 
> "CompressionMiddlware" and add support for both GZip and Brotli
> in the same middleware.
>
> I have the feeling something basing like response encoding should be build 
> into Django. Of course I would not add a hard dependency to brotli,
> but add all methods to `Accept-Encoding` that are actually installed.
>
> What do you guys think? Is this worth a little refactoring?
>
> Best
> -Joe
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/5ac0cf5a-41e5-4ff1-a728-e16164d71270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to