xampp gzip 压缩

来源:互联网 发布:win7仿linux主题 编辑:程序博客网 时间:2024/04/30 07:18

apache 的 httd.conf  开启LoadModule deflate_module modules/mod_deflate.soLoadModule filter_module modules/mod_filter.soLoadModule headers_module modules/mod_headers.so并且末尾加<IfModule mod_deflate.c>DeflateCompressionLevel 9AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-phpAddOutputFilter DEFLATE css js</IfModule><FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css)$">Header set Cache-Control "max-age=2592000"</FilesMatch>


0 0
原创粉丝点击