mirror of
https://github.com/django/django.git
synced 2025-09-13 14:06:28 +00:00
Fixed #17552 -- Removed a hack for IE6 and earlier.
It prevented the GZipMiddleware from compressing some data types even on more recent version of IE where the corresponding bug was fixed. Thanks Aaron Cannon for the report and Tim Graham for the review.
This commit is contained in:
parent
fea8ccdcc4
commit
df09d85482
4 changed files with 6 additions and 22 deletions
|
@ -108,11 +108,6 @@ It will NOT compress content if any of the following are true:
|
|||
* The request (the browser) hasn't sent an ``Accept-Encoding`` header
|
||||
containing ``gzip``.
|
||||
|
||||
* The request is from Internet Explorer and the ``Content-Type`` header
|
||||
contains ``javascript`` or starts with anything other than ``text/``.
|
||||
We do this to avoid a bug in early versions of IE that caused decompression
|
||||
not to be performed on certain content types.
|
||||
|
||||
You can apply GZip compression to individual views using the
|
||||
:func:`~django.views.decorators.gzip.gzip_page()` decorator.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue