The Next Generation Platform is Coming - Get Ready Now!
by fuelviews
GitHub Readme.md
Original README:
Purges your Heroku application's Cloudflare cache on deployment.
This buildpack makes use of Heroku's built-in multi buildpack functionality to make a HTTP POST request to the Cloudflare purge all files API. Each time you deploy your Heroku app, the cache will be cleared.
You will need:
Run the following against your Heroku application:
heroku config:set CF_EMAIL=email@example.com
heroku config:set CF_ZONE_ID=my_zone_id
heroku config:set CF_AUTH_KEY=my_cloudflare_api_key
heroku buildpacks:add https://github.com/jamesmartin/cloudflare-cache-purge-buildpack.git
git push heroku master
The Cloudflare Zone ID for your site can be obtained via the API:
zones
command: $ ./cf bin/zones
zones
. E.g:{
"result": [
{
"id":"this-is-your-zone-id",
"name":"example.com",
"status":"active",
...
Copy the snippet above into CLI.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.