Configuration
A manifest is a list of environments, each holding hosts, routes and policy blocks. Rules are evaluated top to bottom and the first match wins.
Precedence
- Route-level
forwardandcacheblocks - Host-level defaults
- Environment defaults
- Platform defaults (no cache, no transforms)
Transforms
routes:
- match: { path_prefix: /static/ }
transform:
strip_prefix: /static
set_headers:
cache-control: "public, max-age=31536000, immutable"
cache: { ttl: 31536000 }
Origin selection
| Mode | Behaviour |
|---|---|
single | Always the same origin. Simplest and the default. |
weighted | Splits by percentage; useful for canaries. |
failover | Tries the next origin on 5xx or connect timeout. |
Limits worth knowing
- Request header block: 32 KB total, 8 KB per header.
- Origin connect timeout: 3 s, overridable up to 10 s.
- Manifest size: 512 KB. Split by environment before you exceed it.
- Compression:
brandgzipfor text types, disabled for already-compressed payloads.
Streaming responses (SSE, chunked JSON) are never buffered. If you enable a transform that needs the full body, Kestrel disables streaming for that route and says so when you push.