From fed71b95ba0bf1ecb6dfbcc0ebfd62a64e97496e Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Fri, 14 Jun 2024 15:57:50 -0500 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E2=9C=A8=E2=9A=A1=EF=B8=8F=20conf?= =?UTF-8?q?ig=20cache-control?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/staticwebapp.config.json | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) 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" },