nginx_compression
This is an old revision of the document!
Nginx Site Compression
Adding compressions can significantly reduce the size of the data transmitted.
It is worth noting that since compressions happens at run time it can add considerable processing overhead which can in turn cause negative performance.
gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
Testing Compression
Has your compression been configured correctly?
https://gtmetrix.com/
nginx_compression.1455989112.txt.gz · Last modified: 2024/05/23 07:26 (external edit)