From 1758a7c5ba87d8922870133fd846d2c221444348 Mon Sep 17 00:00:00 2001 From: Jonathan McCaffrey Date: Sat, 3 Oct 2026 05:42:25 +0000 Subject: [PATCH] =?UTF-8?q?AI:=20Static=20Web=20Apps=20config=20=E2=80=94?= =?UTF-8?q?=20cache=20headers=20and=20SPA=20navigation=20fallback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/staticwebapp.config.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ZeroSpace.Web/wwwroot/staticwebapp.config.json diff --git a/ZeroSpace.Web/wwwroot/staticwebapp.config.json b/ZeroSpace.Web/wwwroot/staticwebapp.config.json new file mode 100644 index 0000000..8302354 --- /dev/null +++ b/ZeroSpace.Web/wwwroot/staticwebapp.config.json @@ -0,0 +1,19 @@ +{ + "routes": [ + { + "route": "/index.html", + "headers": { + "Cache-Control": "no-cache" + } + }, + { + "route": "/_framework/*", + "headers": { + "Cache-Control": "public, max-age=31536000, immutable" + } + } + ], + "navigationFallback": { + "rewrite": "/index.html" + } +}