nginx_compression
This is an old revision of the document!
Nginx Site Compression
Adding compressions can significantly reduce the size of the data transmitted.
Note: since compressions happens at run time it can add considerable processing overhead which can in turn cause negative performance.
1 2 3 4 5 6 7 8 9 |
gzip on; #turns on compressions 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 ; #By default, NGINX compresses responses only with MIME type text/html |
1 |
|
1 |
|
Testing Compression
Has your compression been configured correctly?
1 |
https: //gtmetrix .com/ |
nginx_compression.1455989258.txt.gz · Last modified: 2024/05/23 07:26 (external edit)