Caching rules
By default Fluxpoint respects your origin's Cache-Control headers. Rules let you override that per path.
Default behaviour
| Origin response | Edge behaviour |
|---|---|
Cache-Control: max-age=N | Cached for N seconds. |
no-store / private | Never cached. |
| No header, status 200 | Cached for 4 hours. |
| Status 404 | Cached for 60 seconds. |
| Status 5xx | Not cached; stale copy served if available. |
Rule syntax
{
"match": "/static/*",
"edge_ttl": 2592000,
"browser_ttl": 86400,
"cache_key": { "query_string": "ignore" }
}
Cache key options
query_string:include,ignoreor a list of allowed parameters.headers: request headers added to the key, for exampleAccept-Encoding.cookie: a single cookie name added to the key.
Bypassing the cache
Requests with an Authorization header bypass the cache unless the rule sets "cache_authorized": true.