feat(nginx): add webp to cache control
This commit is contained in:
parent
843b557132
commit
521a4ce7fd
@ -39,7 +39,7 @@ http {
|
|||||||
rewrite ^([^.]*[^/])$ $1/ permanent;
|
rewrite ^([^.]*[^/])$ $1/ permanent;
|
||||||
try_files $uri $uri/ $uri/index.html =404;
|
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;
|
expires 30d;
|
||||||
add_header Cache-Control "public, no-transform";
|
add_header Cache-Control "public, no-transform";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user