如何确定使用Live HTTP标头压缩网页?

时间:2012-08-12 07:04:22

标签: header gzip

当我查看实时http标头中的每个页面时,该页面在标题中包含以下部分:

Accept Encoding: gzip, deflate
Content Encoding: Gzip

当我使用网站检查它是否被压缩时,它表示它没有被压缩。我们如何确保页面被压缩?
例如,我在this site中测试了Gzip tester,它说它没有压缩,但我在实时http标头中看到内容编码。

1 个答案:

答案 0 :(得分:0)

你的标题错了,应该是:

Content-Encoding: gzip

基本上如此:破坏headername中的单词之间的空格

您的网络服务器需要添加并进行压缩,请参阅https://httpd.apache.org/docs/2.0/mod/mod_deflate.html

相关问题