【发布时间】:2012-08-17 10:14:54
【问题描述】:
我有一个带有 centos 6 的 linode 服务器,因为它不支持 mod_gzip,我正在使用 mod_deflate。
这是我在 .htacess 中的代码
<IfModule mod_deflate.c>
<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
当我使用 http://www.whatsmyip.org/http-compression-test/ 进行测试时,它说“我的网站已压缩”,但是当我在 chrome 中使用 pagespeed 时,它仍然建议“启用压缩”
怎么了?我的 .htaccess 代码有什么问题吗?
【问题讨论】:
-
它抱怨的资产是什么?很可能是未压缩的第三方资产。
标签: apache .htaccess pagespeed http-compression mod-deflate