Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GZip Compression Not working in internet explorer 11, but working fine in Chrome & Firefox

Co's,

I enabled GZip compression in my Spring Boot Embedded Tomcat using CompressingFilter (https://github.com/ziplet/ziplet) and FilterRegistrationBean from Spring.

It is working fine in Chrome & Firefox.

  • I am getting Content-Encoding = gzip in response headers
  • Transferred JSON data size is reduced from 6.5MB to 1.2 MB - Great :-)

But, the same code is NOT working in Internet Explorer 11.0.9600.18097.

In Internet Explorer,

  • Content-Encoding = gzip is missing in response headers
  • Transferred JSON data size is still 6.5MB only.

I have pasted my headers ( IE11 ) below. Request Header in IE11

Response Headers - IE11

Could anyone help me to figure out this issue?

Update: Please find Chrome Headers below.

enter image description here

like image 351
Sundararaj Govindasamy Avatar asked Nov 30 '15 19:11

Sundararaj Govindasamy


2 Answers

Internet Explorer's decompression logic happens at a level below the Developer Tools, so you may not see a Content-Encoding in the Developer Tools. You should consider using Fiddler to see what's actually on the wire.

like image 62
EricLaw Avatar answered Nov 11 '22 03:11

EricLaw


Please have a look at the link. It was filed as an issue, but microsoft decided for whatever reason not to fix on IE11. They fixed it in the new Edge browser.

Please take a look at the comments in the link provided.

like image 32
Krishh Avatar answered Nov 11 '22 04:11

Krishh