配置nginx的gzip压缩,提高页面载入速度
| |
Posted in LINUX on 2010/05/10 / 引用(0)
在nginx.conf里面加入如下配置即可。。经firebug测试,jquery1.3.2原本55k大小,现在只需要传输19k
    gzip  on;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";
    gzip_min_length  1000;
    gzip_buffers     4 8k;
    gzip_comp_level 6;
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
This entry comes from 本站原创 and has been read for 210 times.It is tagged with .
发表评论

昵称

网址

电邮

OpenID登入 高级选项 表情