Hyperflow Purge Cache

Purge the proxy cache, when your Webflow site is republished

Purges the global Cloudflare cache for a site. This works with our caching-proxy configuration and is intended to be automatically triggered by Webflow's site publish Webhook.

R&D

  • Individual CMS item publication and cache purging

  • Plus Webflow.js etc.

Configuration

Learn more about Hyperflow configuration here.

KV Store

Service Name: purge-cache

{
  "version": 1, 
  "zoneId": "28fb418cb8b59d549384f34fe0decd07" 
}

Secrets

Requires a Cloudflare API key, which has purge cache permissions on the desired zone;

Account > Workers & Pages > cloudflare-clear-cache > Settings > Variables

Add CLOUDFLARE_API_TOKEN (value) Encrypted

Deployment

Worker Routes

Variable.

We recommend a route like;

  • *DOMAIN/_purge

  • *DOMAIN/_hf/purge-cache

  • *hf.DOMAIN/purge-cache

Webflow API Webhook

Get your SiteID

https://developers.webflow.com/reference/list-sites

Create your Webhook

https://developers.webflow.com/reference/create-webhook

  • site_id = your site ID, above

  • triggerType: site_publish - Sends a site_publish event

  • url - your URL

Future

https://developers.cloudflare.com/workers/learning/how-the-cache-works/

https://developers.cloudflare.com/workers/examples/cache-api/

https://blog.cloudflare.com/introducing-the-workers-cache-api-giving-you-control-over-how-your-content-is-cached/

Last updated