Opened 12 years ago

Closed 12 years ago

#233 closed defect (invalid)

gzip compression not working for ie9

Reported by: Nicolas Leonel Owned by: somebody
Priority: major Milestone:
Component: nginx-core Version: 1.3.x
Keywords: gzip, deflate bug Cc:
uname -a: Linux v3413.vir.kagoya.net 2.6.32-042stab055.16 #1 SMP Fri Jun 8 19:22:28 MSD 2012 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.3.0
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/usr/share --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --user=nginx --group=nginx --with-ipv6 --with-file-aio --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_dav_module --with-http_gzip_static_module --with-http_stub_status_module --add-module=/root/nginx-1.3.0/agentzh-headers-more-nginx-module-6586984/

Description

Hello guys,

This is my very first bug report so bear with me.
For some reason gzip compression is not working for Internet Explorer 9, it does work for FireFox and Chrome browsers but not for IE9. When inspecting the HTTP header response Im not getting any "Content-Encoding: gzip" field when trying with IE9, this field shows up just fine with the other two mentioned browsers. Some detailed info is below, do keep in mind that this is happening with any .js or .css files I have tried so far on IE9.

=============
Header request:

Key Value
Request GET /wp-content/themes/site/js/jquery.scrollTo-min.js HTTP/1.1
Accept text/html, application/xhtml+xml, */*
Accept-Language en-US
User-Agent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding gzip, deflate
Host www.site.jp
Connection Keep-Alive
Cookie utma=251775897.296901576.1350358193.1350409315.1350435377.4; utmz=251775897.1350358193.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)


=============

Header response:

Key Value
Response HTTP/1.1 200 OK
Server nginx
Date Wed, 17 Oct 2012 19:22:23 GMT
Content-Type text/javascript
Last-Modified Wed, 22 Aug 2012 07:53:49 GMT
Transfer-Encoding chunked
Connection keep-alive
Cache-Control max-age=290304000, public
X-Powered-By PleskLin

=============

/etc/nginx/conf.d/gzip.conf:

gzip on;

gzip_proxied any;
gzip_types text/plain text/xml text/css application/json application/javascript application/x-javascript text/javascript application/xml application/rss+xml application/atom+xml application/rdf+xml;
gzip_vary on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

=============

If Im missing any other info please let me know.

Change History (1)

comment:1 by Maxim Dounin, 12 years ago

Resolution: invalid
Status: newclosed

Looking into request with browser internal tools is useless in most cases. In particular, IE 9.0 fails to properly show Content-Encoding (just tested). Look at what happens on the wire with tcpdump/wireshark, or use nginx debugging (or even access_log) to see what happens instead.

Note: See TracTickets for help on using tickets.