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

荒凉一梦 提交于 2019-12-08 14:58:16

问题


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.



来源:https://stackoverflow.com/questions/34006215/gzip-compression-not-working-in-internet-explorer-11-but-working-fine-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!