From 36c16e93bb8dfeb122cc959b10392951973370c8 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 14 Nov 2016 12:08:21 +0200 Subject: [PATCH] roles/nginx: Reduce gzip_comp_level from 6 to 5 After performing some tests[0] again I see that level 5 produces the most acceptable results for my site currently. Others[1] are using the same, so I'll gladly accept a little less CPU load for a tradeoff of a few bits of file size. [0] https://mjanja.ch/2015/03/finding-the-nginx-gzip_comp_level-sweet-spot/ [1] https://github.com/h5bp/server-configs-nginx/blob/master/nginx.conf --- roles/nginx/files/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/files/nginx.conf b/roles/nginx/files/nginx.conf index 8e6e1f5..f7aea83 100644 --- a/roles/nginx/files/nginx.conf +++ b/roles/nginx/files/nginx.conf @@ -57,7 +57,7 @@ http { # Avoids the issue where a non-gzip capable client (which is extremely rare # today) would display gibberish if their proxy gave them the gzipped version. gzip_vary on; - gzip_comp_level 6; + gzip_comp_level 5; gzip_min_length 860; gzip_disable "msie6"; gzip_http_version 1.1;