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

Craft CDN Integration

Updated on October 4, 2018

This tutorial helps you to integrate KeyCDN into your Craft CMS installation.

  1. Create a Pull Zone before you start the Craft CDN integration.
  2. Login to your Craft control panel.
  3. Navigate to Assets.
  4. Create a new Source and define a name, file system path (e.g. assets/) and the URL (e.g. http://<zonename>-<hexUserId>
  5. Create the directory in your public directory according to the file system path that you have defined before and make sure it has write and read permissions.
  6. Upload your images to the defined asset source and integrate them in your entries wherever you want.
  7. Verify if the assets are loading from KeyCDN.

If you already have your assets defined just replace the current URL with the Zone URL from the KeyCDN dashboard.

Furthermore, to automatically clear the KeyCDN cache for a particular asset once it has been updated/deleted or purge the entire Zone directly from the control panel, you can make use of the KeyCDN Craft plugin available on GitHub.

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 about cookies.