减少重定向: 301、302等

启动gzip压缩

[root@base~]# vi /etc/nginx/conf.d/gzip.conf

gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
#gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain font/* application/javascript application/x-javascript text/css application/xml application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png application/pdf;
gzip_vary off;
gzip_disable "MSIE [1-6]\.";

标签: none

添加新评论