-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathcustomHttp.yml
More file actions
28 lines (25 loc) · 988 Bytes
/
customHttp.yml
File metadata and controls
28 lines (25 loc) · 988 Bytes
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
customHeaders:
# Hashed assets (JS, CSS, images) — content-addressed filenames, safe to cache forever
- pattern: "**/assets/**"
headers:
- key: Cache-Control
value: "public, max-age=31536000, immutable"
# HTML pages — short CDN TTL so deployments propagate quickly
- pattern: "**/*.html"
headers:
- key: Cache-Control
value: "public, max-age=0, s-maxage=3500, must-revalidate"
# Raw Markdown files — short TTL + correct MIME type for LLM agents
- pattern: "**/*.md"
headers:
- key: Cache-Control
value: "public, max-age=0, s-maxage=3500, must-revalidate"
- key: Content-Type
value: "text/markdown; charset=utf-8"
# llms.txt and llms-full.txt — short TTL so index updates are visible quickly
- pattern: "**/llms*.txt"
headers:
- key: Cache-Control
value: "public, max-age=0, s-maxage=3500, must-revalidate"
- key: Content-Type
value: "text/plain; charset=utf-8"