diff --git a/web/staticwebapp.config.json b/web/staticwebapp.config.json index 02b21f71c..b19c577e7 100644 --- a/web/staticwebapp.config.json +++ b/web/staticwebapp.config.json @@ -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" },