# Use CDN for media

**URL:** <https://forum.getkirby.com/t/use-cdn-for-media/16125>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 31, 2019, 1:01pm UTC](https://forum.getkirby.com/t/use-cdn-for-media/16125 "2019-10-31T13:01:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danieljwestman](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/danieljwestman/32/8087_2.png) [@danieljwestman](https://forum.getkirby.com/u/danieljwestman)\
**Post date:** [October 31, 2019, 1:01pm UTC](https://forum.getkirby.com/t/use-cdn-for-media/16125/1 "2019-10-31T13:01:11Z")

</div>

In the docs ([Configuring Kirby | Kirby CMS](https://getkirby.com/docs/guide/configuration#custom-folder-setup)) it says we can use a CDN for the sites media and assets files.

How is that done in reality?

The assets I understand, them files we create and saves in our dev environment, nothing strange there. But the media files, they are created on the fly, like cache. If the media directory is on a other server (CDN), how is the files to be created/generated there?

Any tips?

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [October 31, 2019, 1:16pm UTC](https://forum.getkirby.com/t/use-cdn-for-media/16125/2 "2019-10-31T13:16:12Z")

</div>

> **[File URLs](https://getkirby.com/docs/reference/plugins/components/file-urls)**
>
> Documentation for the Vue component.

  

> **[File versions](https://getkirby.com/docs/reference/plugins/components/file-version)**
>
> Documentation for the Vue component.

You can find an example in the [getkirby.com repo](https://github.com/getkirby/getkirby.com)

> <https://github.com/getkirby/getkirby.com/blob/master/site/plugins/cloudinary/index.php>

---

<div class="post-metadata">

**Author:** ![danieljwestman](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/danieljwestman/32/8087_2.png) [@danieljwestman](https://forum.getkirby.com/u/danieljwestman)\
**Post date:** [November 1, 2019, 12:34pm UTC](https://forum.getkirby.com/t/use-cdn-for-media/16125/3 "2019-11-01T12:34:23Z")

</div>

Thanks for the tips. I’ll look into it.
