Support

Find answers, guides, and tutorials to supercharge your content delivery.

Getting Started

Updated on February 6, 2022

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:

  1. Log in to the KeyCDN dashboard.
  2. In the left navigation sidebar click Zones.
  3. Click Add Zone.
  4. Set the Zone Type as pull.
  5. Define the Origin URL (e.g. https://www.yourwebsite.com).
  6. Click Save.
  7. Wait approximately 5 minutes for the Zone to fully deploy.

Alternatively, using a Push Zone is recommended for files greater than 10 MB in size and is required for files larger than 100 MB because Pull Zones do not cache anything larger than 100 MB.

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.

  1. Choose one of your website's static asset URLs (e.g. https://www.yourwebsite.com/path/to/example.css).

  2. Replace the origin URL with your new KeyCDN Zone URL.

  3. 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. **https://zonename-hexid.kxcdn.com**/path/to/example.css)

    curl -I https://zonename-hexid.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
    x-cache: HIT
    x-edge-location: defr
    

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:

Supercharge your content delivery 🚀

Try KeyCDN with a free 14 day trial, no credit card required.

Get started
KeyCDN uses cookies to make its website easier to use. Learn more