Skip to content

Speed

Connecting Cloudflare

Use your own Cloudflare zone as a CDN lane: create a scoped API token and let the plugin set up the cache rules.

Who this is for

Use the own-zone lane if your domain's DNS is already on Cloudflare, with Cloudflare's nameservers. A free Cloudflare plan is enough. If your DNS is somewhere else, skip this: the open lane and the managed lane still carry official open-source files, images, fonts and minified stylesheets.

With this lane, your files are cached and served by your own Cloudflare account. Nothing passes through Swiftkeep, and any Cloudflare limits and terms are the ones on your own account.

Create an API token

  1. 1

    Open API Tokens

    In the Cloudflare dashboard, open My Profile, then API Tokens, and choose Create Token.

  2. 2

    Create a custom token

    Choose Create Custom Token. Cloudflare's WordPress template does not include the Cache Rules permission, so it will not work here.

  3. 3

    Add the permissions

    Add the permissions in the table below.

  4. 4

    Limit it to one zone

    Under Zone Resources, choose Include, Specific zone, and pick the domain of this site.

  5. 5

    Create and copy

    Create the token and copy it. Cloudflare shows it once.

PermissionLevelWhy
Zone, ZoneReadTo find this site's domain in your Cloudflare account
Zone, Cache PurgePurgeTo clear Cloudflare's copy of your pages and files
Zone, Cache RulesEditTo add the caching rules for this site
Zone, Zone SettingsEditOptional. Only needed for the development mode button

Connect it

  1. 1

    Paste the token

    In Speed, open the CDN settings, choose Cloudflare and paste the token.

  2. 2

    Let the plugin check it

    The plugin verifies the token with Cloudflare, finds the zone for your domain and adds a caching rule for static files.

  3. 3

    Confirm

    The screen shows the connected zone. Use its purge button to clear Cloudflare's copy after you change files.

Your own rules are left alone

The plugin adds its rules alongside yours and keeps track of which ones it created. Disconnecting deletes exactly those rules and forgets the token.

Things to know

  • The token is encrypted before it is saved on your site. It is never sent to Swiftkeep and is not shown again
  • As of November 2026, Cloudflare's free plan allows 10 cache rules for each zone. The plugin needs room for its own
  • To use a different token or domain, disconnect first, then connect again
  • If Cloudflare rejects the token, check that you copied all of it and that it has not expired or been deleted

Written for Swiftkeep 2.1.6. Under white label, the plugin shows your agency's name where this guide says Swiftkeep.