| 25 | | # Older versions of IE have issues with gzipped javascript. |
|---|
| 26 | | # See http://code.djangoproject.com/ticket/2449 |
|---|
| 27 | | is_ie = "msie" in request.META.get('HTTP_USER_AGENT', '').lower() |
|---|
| 28 | | is_js = "javascript" in response.get('Content-Type', '').lower() |
|---|
| 29 | | if is_ie and is_js: |
|---|
| 30 | | return response |
|---|
| | 25 | # Older versions of IE have issues with gzipped pages containing either |
|---|
| | 26 | # Javascript and PDF. |
|---|
| | 27 | if "msie" in request.META.get('HTTP_USER_AGENT', '').lower(): |
|---|
| | 28 | ctype = response.get('Content-Type', '').lower() |
|---|
| | 29 | if "javascript" in ctype or ctype == "application/pdf": |
|---|
| | 30 | return response |
|---|