Created
August 17, 2021 15:01
-
-
Save DavidEredics/d3730e544b15ab6592f2bc1b6137efc5 to your computer and use it in GitHub Desktop.
Cloudflare API Purge Files by URL example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST "https://api.cloudflare.com/client/v4/zones/[zone_identifier]/purge_cache" \ | |
-H "Authorization: Bearer [api_token]" \ | |
-H "Content-Type: application/json" \ | |
--data '{"files":["https://example.com/data.json","https://www.example.com/favicon.ico"]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment