记录下项目中使用gzip,本地搭建的nginxwebpack
1.webpack开启压缩nginx
productionGzip:true
复制代码
2.nginx配置web
gzip_static on;
gzip_http_version 1.1;
gzip_proxied expiredno-cacheno-store private auth;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
复制代码
开启前bash
开启后spa