Gzip无法正确压缩我的网站

时间:2018-11-24 15:13:17

标签: apache .htaccess gzip

Gzip无法正常工作。我在.htaccess中添加了以下代码以启用gzip。但在“压缩我的网站”方面没有任何改变:

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png
AddType text/css .css

checkgzipcompression.com中,它表示已启用Gzip。解决这个问题有什么想法吗?

0 个答案:

没有答案