feat(web): ️ config cache-control

This commit is contained in:
Collin Barrett 2024-06-14 15:57:50 -05:00
parent 601741c1ae
commit fed71b95ba

View file

@ -1,4 +1,54 @@
{
"routes": [
{
"route": "/static/*",
"headers": {
"cache-control": "public, max-age=31536000, immutable"
}
},
{
"route": "/favicon.ico",
"headers": {
"cache-control": "public, max-age=86400"
}
},
{
"route": "/logo_filterlists.png",
"headers": {
"cache-control": "public, max-age=31536000, immutable"
}
},
{
"route": "/icon_filterlists.png",
"headers": {
"cache-control": "public, max-age=31536000, immutable"
}
},
{
"route": "/manifest.json",
"headers": {
"cache-control": "public, max-age=86400"
}
},
{
"route": "/robots.txt",
"headers": {
"cache-control": "public, max-age=86400"
}
},
{
"route": "/tpl-redirect.js",
"headers": {
"cache-control": "public, max-age=86400"
}
},
{
"route": "/tpl.html",
"headers": {
"cache-control": "public, max-age=86400"
}
}
],
"navigationFallback": {
"rewrite": "/index.html"
},