#5313 closed (fixed)
GZipMiddleware should compress javascript
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | HTTP handling | Version: | dev |
| Severity: | Keywords: | gzip javascript | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Only really old versions of Internet Explorer have problems with javascript compression anymore. Even Yahoo and Google compress their javascript now. Here is a simple one line patch to maintain compatibility with older versions of explorer while allowing gzip compression of javascript.
Attachments (3)
Change History (9)
by , 18 years ago
| Attachment: | gzipdiff.diff added |
|---|
comment:1 by , 18 years ago
| Triage Stage: | Unreviewed → Design decision needed |
|---|
comment:2 by , 18 years ago
| Triage Stage: | Design decision needed → Ready for checkin |
|---|
comment:3 by , 18 years ago
comment:4 by , 18 years ago
You should note that "content-type" has to spelled in lowercase, if you're using request.get().
See #5772.
comment:5 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:6 by , 18 years ago
Note:
See TracTickets
for help on using tickets.
I suggest changing
request.META.get('HTTP_USER_AGENT', '').find('MSIE') != -1to
"MSIE" in request.META.get('HTTP_USER_AGENT', '')