Before purging
Correct the file at the origin or fix the cache policy first. Otherwise, the next request can cache the same unwanted response again. Select the correct project and distribution. For API examples, complete credential setup and replace distribution ID73 with your own.
Choose a purge mode
Use paths beginning with
/, such as /assets/app.css, rather than complete URLs. Paths containing a URL scheme, .., backslashes, repeated slashes, or control characters are rejected.
Prefer the smallest affected set. Purging all content removes useful cached objects and can increase origin traffic.
Purge specific paths
In the console, use the distribution’s purge tool, select URL mode, and enter the affected paths. The equivalent API request is:201 on success. Do not require a JSON response body.
Check history and delivery
Read recent purge operations for the key’s project:Prefetch selected files
Use prefetch for a controlled set of public, high-demand paths after they are available at the origin.201 on success. It is not an unbounded site crawl and does not guarantee that an uncacheable response becomes cacheable. Inspect recent operations through GET /cloud-cdn/tools/prefetch/history and test delivery.
Handle failures
See caching when the same content repeatedly needs purging.