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" }
}
| Field | Description |
|---|---|
match | Path pattern. * matches any characters within the path. |
edge_ttl | How long the edge keeps the object. Overrides origin headers. |
browser_ttl | The max-age we send to browsers. |
cache_key.query | include, ignore or a list of parameters to keep. |
Rules are evaluated top to bottom; the first match wins.