GZip Compression Not working in internet explorer

2019-06-15 02:45发布

问题:

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.

Could anyone help me to figure out this issue?

Update: Please find Chrome Headers below.

回答1:

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.



回答2:

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.