From ae02747ee079e7afc777f54dd1c920f69abb1d2d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 12 Jan 2020 12:54:23 -0500 Subject: [PATCH] Adding image caching via immutable to ansible. #371 #408 --- ansible/templates/nginx.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 4af5be0..0a420d7 100644 --- a/ansible/templates/nginx.conf +++ b/ansible/templates/nginx.conf @@ -68,8 +68,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; if ($request_uri ~ \.(?:ico|gif|jpe?g|png|webp|bmp|mp4)$) { - add_header Cache-Control "public"; - expires max; + add_header Cache-Control "public, max-age=31536000, immutable"; } } }