Apache启用性能优化——启用Gzip,JS压缩

来源:互联网 发布:电脑做图软件 编辑:程序博客网 时间:2024/06/05 23:45

#Add deflate module for enable GZIP function
LoadModule deflate_module     modules/mod_deflate.so

#Add GZIP config filetype
AddOutputFilterByType DEFLATE text/html text/php text/png text/jpg text/plain text/css text/xml text/javascript

#Set compression level
DeflateCompressionLevel 9

#Hook on output filter
SetOutputFilter DEFLATE

 

原创粉丝点击