diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-12 12:54:23 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-12 12:58:06 -0500 |
commit | 146e40597997b10a25ed2044dea234d6799c87a3 (patch) | |
tree | 76876a99ad055991bf3b179d9678d23c2a4234f6 /ansible | |
parent | 677d716ae6b21ecb0569d661c1d76520dade1643 (diff) |
Adding image caching via immutable to ansible. #371 #408
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/templates/nginx.conf | 3 |
1 files changed, 1 insertions, 2 deletions
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"; } } } |