Cache rules

By default we respect the Cache-Control and Expires headers from your origin. Cache rules let you override them per path.

Rule format

{
  "match": "/assets/*",
  "edge_ttl": "30d",
  "browser_ttl": "7d",
  "cache_key": { "query": "ignore" }
}
FieldDescription
matchPath pattern. * matches any characters within the path.
edge_ttlHow long the edge keeps the object. Overrides origin headers.
browser_ttlThe max-age we send to browsers.
cache_key.queryinclude, ignore or a list of parameters to keep.
Rules are evaluated top to bottom; the first match wins.

Was this page helpful? Contact support if something is unclear.