From 521a4ce7fd1152c87c44210e8183a31ecd6786e9 Mon Sep 17 00:00:00 2001 From: Jewgeni Lewash Date: Fri, 8 Mar 2024 08:25:09 +0100 Subject: [PATCH] feat(nginx): add webp to cache control --- nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 9343736..5199c19 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -39,7 +39,7 @@ http { rewrite ^([^.]*[^/])$ $1/ permanent; try_files $uri $uri/ $uri/index.html =404; - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { + location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|webp)$ { expires 30d; add_header Cache-Control "public, no-transform"; }