From: Dessalines Date: Sun, 12 Jan 2020 17:54:23 +0000 (-0500) Subject: Adding image caching via immutable to ansible. #371 #408 X-Git-Url: http://these/git/%7B%60https:/%7B%60css/themes/%22https:/nerdica.net/README.zh.hans.md?a=commitdiff_plain;h=146e40597997b10a25ed2044dea234d6799c87a3;p=lemmy.git Adding image caching via immutable to ansible. #371 #408 --- diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 4af5be01..0a420d77 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"; } } }