You can configure a Sitefinity CMS blob storage provider to work with CDN. When configured this way, Sitefinity CMS serves all media content managed by this provider through the CDN URL. This results in content going to the client through the CDN, and brings the benefits of faster content delivery and CDN caching.
This is made possible since each blob storage provider returns relative URLs for the media content items it stores. By default Sitefinity resolves these URLs to your website domain (for example https://www.mysite.com) and returns media content URLs from that domain (for example https://www.mysite.com/sf-images/default-source/default-album/myimage.png). When you configure CDN parameters for the blog storage provider, Sitefinity CMS resolves the URL of the media content using for the specified CDN URL (for example https://www.cloudfront.net/sfimages/default-source/default-album/myimage.png).
RECOMMENDATION: We do not recommend using CDN with the default File system and Database provides. If you do this, all existing content that is located on the file system or on the database will be served through the CDN, including the system images. We recommend to create a new blob storage provider and configure the CDN settings, create new library that will use it, and move the public items from default library to the new library.
NOTE: Sitefinity's blob storage providers work with images, videos and documents (the default Sitefinity CMS provider works with all three of these item types). By adding the CDN parameters to a provider all of its item types will be served through the CDN. If this is your intended scenario, make sure your CDN can handle the different item types of the provider.
To configure CDN for your blob storage provider you need to edit the provider settings and add a new parameter instructing the provider to use CDN and what is the CDN URL. To do this perform the following procedure:
As a result, your provider now uses CDN.
You can change the blob storage provider for an existing library by performing the following:
As a result, your library is configured to use the CDN blob storage provider and content items from that library are retrieved from the CDN.
If you activated the Web security module and have images or other media on your website that are served from another domain like Azure or Amazon Web Services, you must add the domain names in the module’s HTTP response headers. To do so:
For more information, see Web security module.
Back To Top
Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.