Setting up a CDN to work with your website is easy and can be done in just a few steps. The article How Does a CDN Work is a recommended read if you are not yet familiar with a content delivery network.
Pull Zones are the most commonly used Zone Type and are the recommended method for most CDN users. With this method, the CDN automatically pulls content from your origin server and caches it on our edge servers. Once the content is cached, visitor requests will be routed and delivered from the nearest possible edge server location.
To get started with your KeyCDN integration, complete the following three steps:
1. Create your Zone
Creating a KeyCDN Zone is easy. Simply follow the steps outlined below:
- Log in to the KeyCDN dashboard.
- In the left navigation sidebar click Zones.
- Click Add Zone.
- Set the Zone Type as
- Define the Origin URL (e.g.
- Click Save.
- Wait approximately 5 minutes for the Zone to fully deploy.
2. Check your CDN assets
Once your Zone is fully deployed, you’ll want to check an asset to see if it is properly accessible via the CDN.
- Choose one of your website’s static asset URLs (e.g.
- Replace the origin URL with your new KeyCDN Zone URL.
Access your new Zone URL in a browser, use our Performance Tool, or use a curl command to verify the asset returns a 200 status (e.g.
curl -I https://yourzone-1a2b.kxcdn.com/path/to/example.css **HTTP/2 200** server: keycdn-engine date: Wed, 12 Feb 2020 02:57:19 GMT content-type: text/css vary: Accept-Encoding last-modified: Tue, 11 Feb 2020 12:50:34 GMT etag: W/"5e42a31a-28663" expires: Wed, 19 Feb 2020 02:57:19 GMT cache-control: max-age=604800 strict-transport-security: max-age=31536000; includeSubdomains; preload content-security-policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' https: data: x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block x-content-type-options: nosniff referrer-policy: no-referrer-when-downgrade x-cache: HIT x-edge-location: usse access-control-allow-origin: *
Once you have verified that your assets are accessible through the Zone URL, you can move on to the next step of integrating KeyCDN with your website.
3. Integrate the CDN with your website
The following integration guides will help you to quickly integrate KeyCDN into your web projects: