From e4ac60e02c9e70de1452c0fb3946314e9996274a Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 12 Dec 2024 14:03:54 +0000 Subject: [PATCH] perf(docs-infra): improve app firebase configuration - Remove trailing slash redirect (e.g., /overview no longer redirects to /overview/). - Update static file matching: Resolves an issue where hashed files were being cached for up to 1 hour. --- adev/firebase.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adev/firebase.json b/adev/firebase.json index 90c4e52f566ba..1a7b83042013a 100644 --- a/adev/firebase.json +++ b/adev/firebase.json @@ -3,6 +3,7 @@ "target": "angular-docs", "public": "./build/browser", "ignore": ["**/.*"], + "trailingSlash": false, "headers": [ { "source": "assets/images/tutorials/common/*.jpg", @@ -18,7 +19,7 @@ ] }, { - "source": "*.[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].+(css|js)", + "source": "/**/*-[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z].+(css|js|png|jpeg|svg|jpg)", "headers": [ { "key": "Cache-Control",