简体   繁体   English

GZip压缩无法在Internet Explorer 11中运行,但在Chrome和Firefox中运行良好

[英]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. 我使用Spring中的CompressingFilter( https://github.com/ziplet/ziplet )和FilterRegistrationBean在我的Spring Boot Embedded Tomcat中启用了GZip压缩。

It is working fine in Chrome & Firefox . 它在Chrome和Firefox中运行良好

  • I am getting Content-Encoding = gzip in response headers 我在响应头中获取Content-Encoding = gzip
  • Transferred JSON data size is reduced from 6.5MB to 1.2 MB - Great :-) 传输的JSON数据大小从6.5MB减少到1.2 MB - 很棒:-)

But, the same code is NOT working in Internet Explorer 11.0.9600.18097. 但是,相同的代码无法Internet Explorer 11.0.9600.18097工作

In Internet Explorer, 在Internet Explorer中,

  • Content-Encoding = gzip is missing in response headers 响应标头中缺少Content-Encoding = gzip
  • Transferred JSON data size is still 6.5MB only. 传输的JSON数据大小仍然只有6.5MB。

I have pasted my headers ( IE11 ) below. 我已经粘贴了我的标题(IE11)。 在IE11中请求标头

响应标头 -  IE11

Could anyone help me to figure out this issue? 任何人都可以帮我解决这个问题吗?

Update: Please find Chrome Headers below. 更新:请在下方找到Chrome标头。

在此输入图像描述

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. Internet Explorer的解压缩逻辑发生在开发人员工具以下的某个级别,因此您可能无法在开发人员工具中看到Content-Encoding You should consider using Fiddler to see what's actually on the wire. 您应该考虑使用Fiddler来查看线路上的实际内容。

Please have a look at the link . 请看一下这个链接 It was filed as an issue, but microsoft decided for whatever reason not to fix on IE11. 它是作为一个问题提交的,但微软决定不以任何理由不修复IE11。 They fixed it in the new Edge browser. 他们在新的Edge浏览器中修复了它。

Please take a look at the comments in the link provided. 请查看所提供链接中的评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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