-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathnetlify.toml
More file actions
72 lines (59 loc) · 2.11 KB
/
Copy pathnetlify.toml
File metadata and controls
72 lines (59 loc) · 2.11 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[build]
publish = "site"
[[edge_functions]]
function = "markdown-home"
path = "/"
# RFC 8288 / discovery — homepage points agents at machine-readable resources
[[headers]]
for = "/"
[headers.values]
Link = "</.well-known/api-catalog>; rel=\"api-catalog\", </llms.txt>; rel=\"describedby\", </openapi.yaml>; rel=\"service-desc\", </homepage.md>; rel=\"alternate\"; type=\"text/markdown\""
Cache-Control = "public, max-age=120, stale-while-revalidate=86400"
[[headers]]
for = "/.well-known/api-catalog"
[headers.values]
Content-Type = "application/linkset+json; charset=utf-8"
[[headers]]
for = "/.well-known/agent-skills/index.json"
[headers.values]
Content-Type = "application/json; charset=utf-8"
[[headers]]
for = "/openapi.yaml"
[headers.values]
Content-Type = "application/yaml; charset=utf-8"
Cache-Control = "public, max-age=300, stale-while-revalidate=3600"
[[headers]]
for = "/robots.txt"
[headers.values]
Content-Type = "text/plain; charset=utf-8"
Cache-Control = "public, max-age=600, stale-while-revalidate=86400"
[[headers]]
for = "/sitemap.xml"
[headers.values]
Content-Type = "application/xml; charset=utf-8"
Cache-Control = "public, max-age=3600, stale-while-revalidate=86400"
# HTML hub + leaf compare pages — short max-age so updates land, stale-while-revalidate for perceived speed on back/forth.
[[headers]]
for = "/compare/**"
[headers.values]
Cache-Control = "public, max-age=120, stale-while-revalidate=86400"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=604800, stale-while-revalidate=864000"
[[headers]]
for = "/screenshots/*"
[headers.values]
Cache-Control = "public, max-age=604800, stale-while-revalidate=864000"
[[headers]]
for = "/*.webp"
[headers.values]
Cache-Control = "public, max-age=604800, stale-while-revalidate=864000"
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=604800, stale-while-revalidate=864000"
[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=604800, stale-while-revalidate=864000"