前端加载访问速度优化详细指南(Nginx)

  # gzip config

  gzip on;

  gzip_min_length 1k;

  gzip_comp_level 9;

  gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;

  gzip_vary on;

  gzip_disable "MSIE [1-6].";