python3-django-compression-middleware

Django middleware to compress responses using several algorithms

Description

This middleware implements compressed content encoding for HTTP. It is similar to Django's GZipMiddleware, but additionally supports other compression methods. It is meant to be a drop-in replacement for Django's GZipMiddleware.

The middleware is focussed on the task of compressing typical Django responses such as HTML, JSON, etc. Both normal (bulk) and streaming responses are supported. For static file compression, have a look at other projects such as WhiteNoise.

Zstandard is a new method for compression with little client support so far. Most browsers now support Brotli compression. The middleware will choose the best compression method supported by the client as indicated in the request's Accept-Encoding header.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/friedelwolff/django-compression-middleware


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-django-compression-middleware