亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

After nginx enables gzip compression, the file size does not change.
巴扎黑
巴扎黑 2017-05-16 17:17:20
0
1
578

The current situation is as shown in the figure. The size does not change after turning on gzip. Solution

Supplement nginx.conf

gzip  on;
gzip_comp_level 6;
gzip_min_length 10k;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types    text/plain application/javascript application/x-javascript application/json text/javascript text/xml

text/css;

巴扎黑
巴扎黑

reply all(1)
某草草

ngnixgzipThere are two key values ??in the configuration:

gzip_min_length: Minimum compression length
Only the compressed content exceeding this length will be compressed, otherwise it will be output directly

gzip_types: Compressed content typesgzip_types:壓縮內(nèi)容類型
只有列出來的內(nèi)容類型才會(huì)被壓縮,其他類型的內(nèi)容不會(huì)被壓縮,類型指的是MIME類型。
如需要壓縮JS文件需配置gzip_types text/javascriptOnly the listed content types will be compressed, other types of content will not be compressed, the type refers to the MIME type.

If you need to compress JS files, you need to configure gzip_types text/javascript??
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template