GZip Compression在Internet Explorer 11中无法使用,但在Chrome&火狐浏览器 [英] GZip Compression Not working in internet explorer 11, but working fine in Chrome & Firefox

查看:217
本文介绍了GZip Compression在Internet Explorer 11中无法使用,但在Chrome&火狐浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

公司,

我使用CompressingFilter( https://github.com/ziplet/ziplet在Spring Boot嵌入式Tomcat中启用了GZip压缩)和Spring的FilterRegistrationBean.

I enabled GZip compression in my Spring Boot Embedded Tomcat using CompressingFilter (https://github.com/ziplet/ziplet) and FilterRegistrationBean from Spring.

它在Chrome& Firefox .

  • 我在响应标头中得到Content-Encoding = gzip
  • 传输的JSON数据大小从6.5MB减少到1.2 MB-很棒:-)

但是,相同的代码不能 Internet Explorer 11.0.9600.18097中工作.

在Internet Explorer中,

In Internet Explorer,

  • Content-Encoding = gzip响应标头中缺少
  • 传输的JSON数据大小仍仅为6.5MB.

我在下面粘贴了标头(IE11).

I have pasted my headers ( IE11 ) below.

有人可以帮我解决这个问题吗?

Could anyone help me to figure out this issue?

更新: 请在下面找到 Chrome 标头.

Update: Please find Chrome Headers below.

推荐答案

Internet Explorer的解压缩逻辑发生在开发人员工具以下的级别,因此您可能在开发人员工具中看不到Content-Encoding.您应该考虑使用Fiddler来查看线路上的实际内容.

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.

这篇关于GZip Compression在Internet Explorer 11中无法使用,但在Chrome&火狐浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆