apache_conf 启用GZIP压缩(.htaccess)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 启用GZIP压缩(.htaccess)相关的知识,希望对你有一定的参考价值。
<IfModule mod_deflate.c>
# Insert filters
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
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE image/svg+xml
# Drop problematic browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
以上是关于apache_conf 启用GZIP压缩(.htaccess)的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf 启用GZIP压缩#optimization #gzip #htaccess
apache_conf 启用GZIP压缩(.htaccess)
apache_conf 通过启用gzip压缩来提高页面速度。在WordPress中添加到.htaccess
apache_conf gzip压缩压缩
apache_conf GZIP压缩
apache_conf GZip压缩