chore: cache png icons forever to lower vercel costs
This commit is contained in:
parent
5889b404cb
commit
8f61ea75ce
|
@ -44,7 +44,13 @@ const JSON_TEMPLATE = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: '^/.*\\.(png|css|json|svg|jpe?g|map|txt|gz|webapp|woff|woff2)$',
|
src: '^/.*\\.(png|jpe?g)$',
|
||||||
|
headers: {
|
||||||
|
'cache-control': 'public,max-age=31536000,immutable'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: '^/.*\\.(css|json|svg|map|txt|gz|webapp|woff|woff2)$',
|
||||||
headers: {
|
headers: {
|
||||||
'cache-control': 'public,max-age=3600'
|
'cache-control': 'public,max-age=3600'
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"version": "2.6.0",
|
"version": "2.6.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.20.0 || ^14.13.1 || ^16.0.0 || ^18.0.0"
|
"node": "^12.20.0 || ^14.13.1 || ^16.0.0 || ^18.0.0 || ^20.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "standard && standard --plugin html 'src/routes/**/*.html'",
|
"lint": "standard && standard --plugin html 'src/routes/**/*.html'",
|
||||||
|
|
|
@ -29,7 +29,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "^/.*\\.(png|css|json|svg|jpe?g|map|txt|gz|webapp|woff|woff2)$",
|
"src": "^/.*\\.(png|jpe?g)$",
|
||||||
|
"headers": {
|
||||||
|
"cache-control": "public,max-age=31536000,immutable"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "^/.*\\.(css|json|svg|map|txt|gz|webapp|woff|woff2)$",
|
||||||
"headers": {
|
"headers": {
|
||||||
"cache-control": "public,max-age=3600"
|
"cache-control": "public,max-age=3600"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue