简体   繁体   中英

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. 在IE11中请求标头

响应标头 -  IE11

Could anyone help me to figure out this issue?

Update: Please find Chrome Headers below.

在此输入图像描述

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM