creamy-monkey-35142
04/18/2023, 11:29 AMttl
,currently it’s not really clear
Duration a resource lives in the Cloudflare cache.
positive number - cache for specified duration in seconds
in Terraform have better explain
ttl - (Required) Duration a resource lives in the Cloudflare cache.
positive number - cache for specified duration in seconds
0 - sets no-cache, saved to cache, but expired immediately (revalidate from origin every time)
-1 - sets no-store, never save to cache
like now, I use Cloudflare API and it return data with value
"actions": [
{
"id": "cache_ttl_by_statuses",
"value": {
"302": "no-cache",
"404": "no-cache",
"500": "no-cache",
"522": "no-cache"
}
}
],
and I don’t know the int
number of no-cache
until I checked Terraform documentechoing-dinner-19531
04/19/2023, 8:34 AM