apache_conf 添加deflate支持(压缩)和htaccess

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 添加deflate支持(压缩)和htaccess相关的知识,希望对你有一定的参考价值。

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/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/javascript 

以上是关于apache_conf 添加deflate支持(压缩)和htaccess的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf .htaccess mod_deflate gZip压缩

apache_conf .htaccess样板包括expire头,mod pagespeed,缓存控件头,Gzip,Deflate #htaccess #seo

apache_conf .htaccess样板包括expire头,mod pagespeed,缓存控件头,Gzip,Deflate #htaccess #seo

使用Rack :: Deflator添加GZIP会导致Heroku上的“客户端请求中断”错误

IE下的deflate模式

mod_deflate模块