-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstaticwebapp.config.json
More file actions
47 lines (47 loc) · 1.14 KB
/
staticwebapp.config.json
File metadata and controls
47 lines (47 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/images/*.{png,jpg,gif}", "/css/*", "/js/*", "/api/*", "/data/*", "/sitemap.xml", "/robots.txt", "/llms.txt", "/ads.txt", "/og-image.png"]
},
"mimeTypes": {
".json": "text/json",
".txt": "text/plain"
},
"responseOverrides": {
"404": {
"rewrite": "/index.html",
"statusCode": 200
}
},
"globalHeaders": {
"Cache-Control": "no-cache, no-store, must-revalidate",
"Pragma": "no-cache",
"Expires": "0",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Referrer-Policy": "strict-origin-when-cross-origin"
},
"routes": [
{
"route": "/sitemap.xml",
"headers": {
"Content-Type": "application/xml",
"Cache-Control": "public, max-age=86400"
}
},
{
"route": "/robots.txt",
"headers": {
"Content-Type": "text/plain",
"Cache-Control": "public, max-age=86400"
}
},
{
"route": "/llms.txt",
"headers": {
"Content-Type": "text/plain; charset=utf-8",
"Cache-Control": "public, max-age=86400"
}
}
]
}