From c1cecd4cbf7208086c75312063c4068d2619fd0b Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 14 Nov 2016 12:32:39 +0200 Subject: [PATCH] roles/nginx: Update comment for gzip_comp_level From the HTML 5 Boilerplate server configs, see: https://github.com/h5bp/server-configs-nginx/blob/master/nginx.conf --- roles/nginx/files/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/nginx/files/nginx.conf b/roles/nginx/files/nginx.conf index 2e3b93d..11c0df3 100644 --- a/roles/nginx/files/nginx.conf +++ b/roles/nginx/files/nginx.conf @@ -57,7 +57,12 @@ 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; + + # Compression level (1-9). + # 5 is a perfect compromise between size and CPU usage, offering about + # 75% reduction for most ASCII files (almost identical to level 9). gzip_comp_level 5; + gzip_min_length 860; gzip_disable "msie6"; gzip_http_version 1.1;