nginx gzip 与 gzip_static
nginx gzip 与 gzip_static
生效区别:response headers 中 ETag 存在 W/ ,说明使用的实时压缩gzip;
不存在且有压缩效果使用的gzip_static;
gzip_static 需要前端生成相应的gz结尾的压缩文件
要使用static_gzip需要在编译的时候把static_gzip模块编译进去:
./configure --with-http_gzip_static_module
并重新安装
make && make install