feat(nginx): add webp to cache control

This commit is contained in:
Jewgeni Lewash 2024-03-08 08:25:09 +01:00
parent 843b557132
commit 521a4ce7fd

View File

@ -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";
}