GZip Compression Not working in internet explorer

2019-06-15 02:23发布

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

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-06-15 03:05

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.

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-06-15 03:09

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.

查看更多
登录 后发表回答