From 27a3ee965164740dfca6b3d74bed5c32f08197a9 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 12 Mar 2016 19:17:40 +0200 Subject: [PATCH] roles/nginx: Add cache control header for SVG images Signed-off-by: Alan Orth --- roles/nginx/templates/wordpress.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/templates/wordpress.j2 b/roles/nginx/templates/wordpress.j2 index 1bae75b..1f327bb 100644 --- a/roles/nginx/templates/wordpress.j2 +++ b/roles/nginx/templates/wordpress.j2 @@ -6,7 +6,7 @@ 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"; }