虚拟主机Gzip压缩功能和具体设置
发布日期:2015-12-3 16:12:50
轻云服务器和万网虚拟主机均已经开启了gzip压缩模块。万网Linux主机压缩设置如下: 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/x-httpd-php AddOutputFilterByType DEFLATE application/x-httpd-fastphp AddOutputFilterByType DEFLATE image/svg+xml 可以通过站长工具http://tool.chinaz.com/Gzips/ 检测(请勿使用临时域名测试,因为临时域名有安全策略,无法正确进行验证)。 或者根据浏览器调试工具(打开网站后按F12)查看Response Headers 中是否有Content-Encoding:gzip 如果有就表示已经开启了gzip压缩。 如下图测试:
|