0

Nginx 配置 Gzip 压缩

white created at5 years ago view count: 2483

Nginx 配置 Gzip 压缩 javascript json html 加快客户端API访问速度和网页打开数据。 配置如下

   gzip on;
    gzip_vary on;
    gzip_proxied any;
    gzip_comp_level 6;
    gzip_buffers 16 8k;
    gzip_http_version 1.1;
    gzip_min_length 256;
    gzip_types text/plain  application/javascript text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon;
report
回复

Recent search keywords