Kestrel
Docs · v4.8

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

  1. Route-level forward and cache blocks
  2. Host-level defaults
  3. Environment defaults
  4. 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

ModeBehaviour
singleAlways the same origin. Simplest and the default.
weightedSplits by percentage; useful for canaries.
failoverTries the next origin on 5xx or connect timeout.

Limits worth knowing

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.