Hi there, I suggest we update the document of <htt...
# general
c
Hi there, I suggest we update the document of https://www.pulumi.com/registry/packages/cloudflare/api-docs/pagerule/#pageruleactionscachettlbystatus about
ttl
,currently it’s not really clear
Copy code
Duration a resource lives in the Cloudflare cache.

positive number - cache for specified duration in seconds
in Terraform have better explain
Copy code
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
Copy code
"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 document
e
Could you raise a bug about this on our cloudflare repo.