apache开启gzip压缩

apache2.4开启gzip压缩

LoadModule filter_module modules/mod_filter.so

LoadModule deflate_module modules/mod_deflate.so


<ifmodule mod_deflate.c> 

     DeflateCompressionLevel 9 

     AddOutputFilterByType   DEFLATE text/html text/plain text/xml application/x-httpd-php 

     AddOutputFilter         DEFLATE  html  htm  xml  php  css  js 

</ifmodule> 



你可能感兴趣的:(apache,压缩,GZip)