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:
parent
21169b9e55
commit
a7114c23c3
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user