参考:
https://docs.nginx.com/nginx/admin-guide/web-server/compression/
server {
gzip on;
gzip_types text/plain text/css application/xml application/x-javascript text/javascript application/x-httpd-php;
gzip_min_length 1000;
gzip_proxied no-cache no-store private expired auth;
}
原文:https://www.cnblogs.com/byeyear/p/9545837.html