fix(cache): add no-cache header for /pro (exact path) (#1179)

/pro/(.*) only matches subpaths, not /pro itself. CF was caching
the /pro HTML page, serving stale bundles after deploys.
This commit is contained in:
Elie Habib
2026-03-07 13:04:10 +04:00
committed by GitHub
parent 327f499cc2
commit f8f1490fcf

View File

@@ -44,7 +44,13 @@
]
},
{
"source": "/pro/(.*)",
"source": "/pro/:path*",
"headers": [
{ "key": "Cache-Control", "value": "no-cache, no-store, must-revalidate" }
]
},
{
"source": "/pro",
"headers": [
{ "key": "Cache-Control", "value": "no-cache, no-store, must-revalidate" }
]