cache-control-immutable
Nolan Lawson 2024-05-04 13:08:40 -07:00
rodzic 67ecd471af
commit 277530b8c6
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -50,7 +50,7 @@ const JSON_TEMPLATE = {
}
},
{
src: '^/.*\\.(svg|css|json|map|txt|gz|webapp|woff|woff2)$',
src: '^/.*\\.(css|json|svg|map|txt|gz|webapp|woff|woff2)$',
headers: {
'cache-control': 'public,max-age=3600'
}

Wyświetl plik

@ -29,13 +29,13 @@
}
},
{
"src": "^/.*\\.(png|svg|jpe?g)$",
"src": "^/.*\\.(png|jpe?g)$",
"headers": {
"cache-control": "public,max-age=31536000,immutable"
}
},
{
"src": "^/.*\\.(css|json|map|txt|gz|webapp|woff|woff2)$",
"src": "^/.*\\.(css|json|svg|map|txt|gz|webapp|woff|woff2)$",
"headers": {
"cache-control": "public,max-age=3600"
}