From 89bee2e6dbc0091fd35fcb56f9ee872804c14e01 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 12 Mar 2016 19:25:57 +0200 Subject: [PATCH] roles/nginx: Add comment for gzip_vary From: https://github.com/h5bp/server-configs-nginx/blob/master/nginx.conf Signed-off-by: Alan Orth --- 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 6dec63c..85f8644 100644 --- a/roles/nginx/files/nginx.conf +++ b/roles/nginx/files/nginx.conf @@ -29,6 +29,11 @@ http { keepalive_timeout 65s; gzip on; + + # Tell proxies to cache both the gzipped and regular version of a resource + # whenever the client's Accept-Encoding capabilities header varies; + # 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_min_length 860;