roles/nginx: Add cache control header for SVG images

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2016-03-12 19:17:40 +02:00
parent c6cc1f57bb
commit 27a3ee9651
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -6,7 +6,7 @@
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
} }
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { location ~* \.(?:ico|css|js|gif|jpe?g|png|svg)$ {
add_header Cache-Control "public, max-age=604800"; add_header Cache-Control "public, max-age=604800";
} }