From f23f0713d2afd5f8fc2b8ec0f137a9d751021b14 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 6 Dec 2014 22:40:39 +0300 Subject: [PATCH] roles/nginx: Enable SPDY header compression Recommended by Ilya Grigorik to be set to 6. Signed-off-by: Alan Orth --- roles/nginx/templates/https.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/nginx/templates/https.j2 b/roles/nginx/templates/https.j2 index 9c3b52c..a7f2745 100644 --- a/roles/nginx/templates/https.j2 +++ b/roles/nginx/templates/https.j2 @@ -23,6 +23,9 @@ # of such infrastructure, consider turning off session tickets: ssl_session_tickets off; + # enable SPDY header compression + spdy_headers_comp 6; + # Enable this if you want HSTS (recommended, but be careful) add_header Strict-Transport-Security max-age=15768000;