Configure CDN cache invalidation

Because of the vast number of CDN providers with different APIs, Sitefinity CMS does not support an out-of-the-box solution for clearing items from the CDN provider when changing or deleting blob items. To resolve this, you can set an appropriate cache duration for the library (browser caching section). This configure the duration of the content item’s cache in the CDN. You can do this for:

  • Documents
  • Images
  • Videos

If you want to explicitly remove an item from the CDN cache, you can subscribe for the change and delete events of the item and implement the API logic for your particular CDN provider to remove the old blob. For more information about subscribing to events, see For developers: IDataEvent.

To set the CDN cache duration for a library:

  1. In Sitefinity CMS backend, open Content and click on Images, Documents, or Videos.
  2. From the Actions menu of a library select Edit Properties.
  3. Expand the Root library settings section.
  4. From the Browser caching dropdown menu, select a cache profile.
  5. Click Save changes

As a result, your library sets the CDN cache duration in accordance with the cache profile you selected.

In addition, you can create your own cache profiles. For more information, see Administration: Cache settings.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?