AI: Static Web Apps config — cache headers and SPA navigation fallback
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user