Kinsta's premium CDN powered by Cloudflare helps to maximize the performance of your site. With the cdn
endpoint you can perform actions like clearing the CDN cache for your sites.
The CDN endpoints may trigger longer tasks (from a few seconds to around a minute) on your environments. This is why they provide 202 Accepted
response, with an operation_id
in the body. To check the progress, you can use the /operations
endpoint.
Clearing site CDN cache in progress
No or invalid API key provided to the request
Error occurred while trying to clear cache
{- "environment_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "cdn_cache_id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
}
{- "operation_id": "cdn-cache:clear-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Clearing site CDN cache in progress",
- "status": 202
}