From d5fc631b601223b875907c8617fb02c4341f7ea6 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 12 Dec 2024 11:05:18 +0000 Subject: [PATCH] perf(docs-infra): improve app 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..e18d1caf087ce 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": "\\.*-[a-zA-Z0-9]{8}\\.[a-z]{3,4}$", "headers": [ { "key": "Cache-Control",