Content Delivery Network

Overview

A Content Delivery Network (CDN) uses servers in various locations to deliver online content from the closest server to the website visitor. This improves website performance and load times. You must configure the CDN provider before you can enable the service for your website. Currently, Cloudflare is the only available CDN provider.

Note:

Your hosting provider can configure the CDN service at a global level. If you do not see the option to use a CDN, contact your provider.

Configure CDN provider

You must configure a CDN provider before you can enable the service for your website. You can configure the CDN provider in the Advanced tab in the Extended Website View interface. You must have a valid account with your CDN provider to complete the configuration.

To configure your CDN, set the Enable a CDN Cache toggle in the Nameservers and CDN box. Then, perform the following steps:

  1. Choose the CDN provider you want to use. Currently, only Cloudflare is available.
  2. Add the email address for your account with the CDN provider.
  3. Add either the Global API Key or API Token from your CDN provider.
  4. Provide a description for the API Key. This should remind you of the key’s purpose.
  5. Click the Submit button.

Create your API key

Note:

The process to create your API key depends on your CDN provider.

An API key or token is an authentication method you use to call services via an API function. Authorizing with an API key provides greater security for your account.

You can provide either a Global API key or a custom API key token:

  • A Global API key — Used across many projects and requires account validation with the CDN provider. This is the recommended authentication method.
  • A custom API token — Created for one specific project with specific permissions and typically does not require additional validation.

Provide a Global API key

To use a Global API key, provide the following information:

  • Global API Key — The key from your provider. Cloudflare provides documentation on the location of your Global API key.
  • Your email address.

WP Squared does not store your Global API key. The Global API key is used to generate a token on your behalf to synchronize DNS records.

Provide an API key token

While not recommended, you can provide an API Key Token. To work properly, the key must have the following permissions:

GroupResourcePermission
ZoneAnalyticsRead
ZoneZoneEdit
ZoneZone SettingsEdit
ZoneDNS EditEdit
ZoneCachePurge