Created
June 30, 2019 22:42
-
-
Save alexjamesbrown/40989476642790c48cc3952615cfc7a7 to your computer and use it in GitHub Desktop.
Clear an item from the Cloudflare cache using curl
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/023e105f4ecef8ad9ca31a8372d0c353/purge_cache" \ | |
-H "X-Auth-Email: [email protected]" \ | |
-H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \ | |
-H "Content-Type: application/json" \ | |
--data '{"files":["http://www.example.com/css/styles.css",{"url":"http://www.example.com/cat_picture.jpg","headers":{"Origin":"cloudflare.com","CF-IPCountry":"US","CF-Device-Type":"desktop"}}]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment