TTL ownership
Use origin-controlled caching when application owners manage valid cache headers consistently. Use CDN-controlled caching for static paths or when origin headers cannot be changed.
Cache keys
By default, query strings can create distinct cache variants. You can:- Ignore every query parameter.
- Ignore every parameter except an allowlist.
- Ignore only a named list.
- Define a custom key expression using supported variables such as
$request_uri,$uri,$scheme, and$http_x_cdn_real_host.
Advanced behavior
- Ignore Set-Cookie: permits caching even when the origin sets cookies. Enable only when the response is truly shared.
- Serve stale: returns stale content for selected upstream status codes.
- Slice: divides large objects into cacheable ranges.
- Cache POST: permits POST responses to enter cache. Use only for deterministic, public requests with an intentional key.