fix: added more image extensions to cache control 1y for better caching strategy on target browser

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2022-06-16 10:58:15 +02:00
parent 21169b9e55
commit a7114c23c3
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283

View File

@ -16,7 +16,7 @@ server {
add_header Cache-Control "public, no-transform"; 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; root /usr/share/nginx/html;
expires 1y; expires 1y;
add_header Cache-Control "public, no-transform"; add_header Cache-Control "public, no-transform";