nginx: use a compression level of 5 in recommended configuration

While there is little gain of space to use a compression level of 9,
the CPU usage is significant. Many experiments point to use something
between 4 and 6. For example:

 - https://mjanja.ch/2015/03/finding-the-nginx-gzip_comp_level-sweet-spot/
 - 3bda5b93ed/nginx.conf (L93)
This commit is contained in:
Vincent Bernat 2018-08-26 21:43:34 +02:00
parent b2da2dfd36
commit 06a5fb2ada

View file

@ -92,7 +92,7 @@ let
gzip on;
gzip_disable "msie6";
gzip_proxied any;
gzip_comp_level 9;
gzip_comp_level 5;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_vary on;
''}