From a7114c23c3adb087d09f335fdd1b90229c7d42c0 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Thu, 16 Jun 2022 10:58:15 +0200 Subject: [PATCH] fix: added more image extensions to cache control 1y for better caching strategy on target browser Signed-off-by: Louis Vallat --- nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 0e5c5a3..147dd10 100644 --- a/nginx.conf +++ b/nginx.conf @@ -16,7 +16,7 @@ server { add_header Cache-Control "public, no-transform"; } - location ~*.(ttf|png|jpg|jpeg|gif)$ { + location ~*.(ttf|png|jpg|jpeg|gif|svg|webp)$ { root /usr/share/nginx/html; expires 1y; add_header Cache-Control "public, no-transform";