Sometimes, we use content delivery network (CDN) as a reverse proxy from where it can serve content and all media files by caching them on it.
Sometimes, we use CDN just to serve media files using multiple domains (domain sharding), that is, your content will get served from http://sitecorecookbook.com/
and your images or files will get served from http://sitecorecookbook.cdn.com/
. So, page rendering would be even faster as browsers will be able to download more resources simultaneously, resulting in faster user experience.
In this recipe, you will learn how we can publish media files to CDN storage while publishing them and access these media files from the CDN domain.