Using a CDN with Episerver


I have an existing Episerver project, all the images and media are genrally uploaded via the back office's media section.

Recently they have significantly inrecressed the amount of media on the website, and are considring, using some kind of CDN to serve the content.

Is it possible to use a CDN with episerver - I would like the back office users not to have to do anything diffrent than they do now, so still upload the images in the normal way.

Has anyone ever done something like this? where do I start?

May 02, 2018 12:51

We have used Azure CDN with success. Upload the same way as always but serving the urls from azure with tranformations in web.config for images. We used the same approach as @aniket mentioned in the last link to Getadigital.

It is also possible to use "poor mans cdn" like this solution:

This will make image served from a diffrent url making it possible to download more content at the same time for the visitor since you can serve it from a diffrent domain. We have used this as well.

May 02, 2018 16:39

I would recommend Cloudflare ( - there is no extra configuration or coding necessary, you just need to make sure the headers are correct.

May 04, 2018 9:06

EPiServer.CdnSupport mentioned above is recommended to use with Cloudflare (or any origin-pull style CDN) and not just for rewriting URLs to another domain name.

May 07, 2018 21:47