How a zone, site or service is cached
GET/v1/orgs/{org}/cache/{kind}/{name}
API token or dashboard session
How a zone, site or service is cached.
Path parameters
orgstringpathrequiredOrganisation slug
kindstringpathrequiredzones,sitesorservicesnamestringpathrequiredIts name
Responses
200CacheSettings404Problem
Fields of CacheSettings
default_ttl_secsintegerrequiredSeconds a response without caching headers is kept. For a zone, see the zone itself.
enabledbooleanrequiredWhether responses are cached at all. Always true for a zone.
keyCacheKeyrequiredWhat a cache key is made of, beyond the hostname, path and encoding.
cookiesstring[]requiredCookies whose values tell entries apart.
devicebooleanrequiredPhones and computers get entries of their own.
headersstring[]requiredRequest headers whose values tell entries apart.
curl "https://api.infraflow.app/v1/orgs/acme/cache/kind/name" \ -H "Authorization: Bearer $INFRAFLOW_TOKEN"
{
"default_ttl_secs": 0,
"enabled": true,
"key": {
"cookies": [
"string"
],
"device": true,
"headers": [
"string"
],
"query": "all",
"query_names": [
"string"
]
},
"presets": [
{
"fit": "contain",
"format": "string",
"height": 0,
"name": "my-app",
"path": true,
"quality": 0,
"width": 0
}
],
"rules": [
{
"action": "respect",
"browser_ttl_secs": 0,
"edge_ttl_secs": 0,
"key": {
"cookies": [
"string"
],
"device": true,
"headers": [
"string"
],
"query": "all",
"query_names": [
"string"
]
},
"match": {
"kind": "prefix",
"pattern": "string"
}
}
],
"signing": true,
"stale_secs": 0,
"tier": {
"enabled": true,
"region": "string"
}
}