Skip to content

Commit

Permalink
perf(docs-infra): improve app firebase configuration
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
alan-agius4 committed Dec 12, 2024
1 parent f3729ce commit 19324c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adev/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"target": "angular-docs",
"public": "./build/browser",
"ignore": ["**/.*"],
"trailingSlash": false,
"headers": [
{
"source": "assets/images/tutorials/common/*.jpg",
Expand All @@ -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].*",
"headers": [
{
"key": "Cache-Control",
Expand Down

0 comments on commit 19324c9

Please sign in to comment.