要使用Gzip网站压缩,在apache2.4(xampp 1.8.1)版本下,httpd.conf 除了要开启mod_deflate外,还要开启mod_filter
其次Gizp的设置(httpd.conf的末尾增加代码):

DeflateCompressionLevel 9
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js