大家好,
我使用Spring Boot嵌入式Tomcat和Spring的FilterRegistrationBean功能,通过CompressingFilter (https://github.com/ziplet/ziplet)启用了GZip压缩。
在Chrome和Firefox中,一切都运行良好。
- 响应头中显示Content-Encoding = gzip
- 传输的JSON数据大小从6.5MB减少到1.2MB - 太棒了:-)
但是,在Internet Explorer 11.0.9600.18097中却不起作用。
在Internet Explorer中:
- 响应头中不显示Content-Encoding = gzip
- 传输的JSON数据大小仍然保持为6.5MB。
我在下面附上了我的IE11请求头。
请问有谁能帮我找出这个问题的原因?
更新: 请看下面的Chrome请求头。