Serving media files from CDN or external storage
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.
How to do it…
First of all, we ...
Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.