#17514: GZip middleware lacks tests and sends compressed responses when larger than the original --------------------------------------+------------------------- Reporter: cannona | Owner: nobody Type: Cleanup/optimization | Status: new Component: Uncategorized | Version: SVN Severity: Normal | Keywords: gzip, tests Triage Stage: Unreviewed | Has patch: 1 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------- The GZip middleware does not currently have any tests.
In addition, in some cases it is not efficient to send a compressed response when the data doesn't compress. After the data is compressed, a check should be performed to see if the compressed data is equal to or larger than the original data, and if so, the original data should be returned instead of the compressed data. This will save a minuscule amount of bandwidth, but it will also save the recipient from having to decompress data. -- Ticket URL: <https://code.djangoproject.com/ticket/17514> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.