Reverse Proxy Purging
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a work in progress as this feature has not been released.
You will need an API Key and Zone ID from your Cloudflare account. The Zone ID is located right on your site's Overview page in the right column near the bottom. Note the Account ID is not the API token. You will need to create an API token. It's easy:
Visit , then click Create Token.
Scroll down to Create Custom Token, then click Get Started.
You will be presented with a form to configure the tokens permissions. You only need to give it Cache Purge > Purge, then set it to your zone. The form should look similar to this before saving.
Default — Uses ExpressionEngine cache headers and cache nothing.
This sets the Cache-Control header to no-store, no-cache, must-revalidate
Partial — Cloudflare & CDNs will cache pages, but browsers will not.
This sets the Cache-Control header to public, max-age=0, s-maxage=N
Full — Browser, Cloudflare & CDNs will cache pages.
This sets the Cache-Control header to public, max-age=N, s-maxage=N, must-revalidate
"N" represents the number of seconds, which will be set based on the TTL value you've set in your Speedy cache tag or global config.
If after setting up the Page Rules to Cache Everything, and you're still seeing BYPASS as the cache-status, then its likely the ExpressionEngine cookies are causing Cloudflare to not cache the page.
Settings > Content & Design > Tracking - Disable all cookies, especially exp_tracker.
cf-cache-status: BYPASS