mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
- 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. PR Close #59170
74 lines
1.7 KiB
JSON
74 lines
1.7 KiB
JSON
{
|
|
"hosting": {
|
|
"target": "angular-docs",
|
|
"public": "./build/browser",
|
|
"ignore": ["**/.*"],
|
|
"trailingSlash": false,
|
|
"headers": [
|
|
{
|
|
"source": "assets/images/tutorials/common/*.jpg",
|
|
"headers": [
|
|
{
|
|
"key": "Cross-Origin-Resource-Policy",
|
|
"value": "cross-origin"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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",
|
|
"value": "public,max-age=31536000,immutable"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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].js",
|
|
"headers": [
|
|
{
|
|
"key": "Cross-Origin-Embedder-Policy",
|
|
"value": "require-corp"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/@(ngsw-worker.js|ngsw.json)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "no-cache"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/**",
|
|
"headers": [
|
|
{
|
|
"key": "Cross-Origin-Opener-Policy",
|
|
"value": "same-origin"
|
|
},
|
|
|
|
{
|
|
"key": "Cross-Origin-Embedder-Policy",
|
|
"value": "require-corp"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"rewrites": [
|
|
{
|
|
"source": "**",
|
|
"destination": "/index.html"
|
|
}
|
|
]
|
|
}
|
|
}
|