With Sitefinity CMS, you can configure both client and output cache profiles on application level for pages and media libraries. You can easily create and manage global cache profiles for pages and media libraries in the Administration section of Sitefinity CMS. To do so, navigate to Administration » Settings » Global settings » Cache profiles.
NOTE: In case you need to configure cache headers, you need to do it in Sitefinity CMS Advanced settings section. For more information, see Configure cache headers for page and media cache profiles section in this article.
By setting global cache profiles on application level, you get a built-it mechanism to cache pages on the client, based on controlling the cache-control header of the page, allowing to send a standard HTTP cache-control header that instructs the client to cache the page for the configured time. You thus optimize your site's performance by reducing the number of requests on the original server by caching the page response on browser, proxy server or CDN for a specific amount of time and reused in other subsequent requests.
NOTE: You cannot delete default cache profiles.
For each cache profile, you can see the details, summarized in the following table.
Specifies the location of the cached HTTP response content. You can choose one of the following values:
Indicates the maximum size in KB to be cached. The items that exceed this limit are not cached.
NOTE: This setting only affects the cache profiles for media libraries.
We recommend that you turn off the library server caching for media libraries using the file system blob
To configure cache headers, navigate to Administration » Settings » Advanced » System » Output Cache Settings.
varyByHost
NOTE: For the media content cache header, you need to enter a numeric value instead of boolean, as you are setting size in KB.
The following table describes the built-in cache headers for pages and media content. Depending on whether you are configuring the profile for pages or media content, you have different set of built-in cache headers.
Controls whether the cache varies by query string parameters. By default, output cache does not vary by query string parameters - Sitefinity CMS serves the same cached version of the page regardless of the query string in the URL. If you are using query string parameters, for example in your custom widgets, you can set the following options in the Value field:
varyByUserAgent
Indicates whether the cache varies by user agent (browser) header. Applies to the Response.Cache.VaryByHeaders.UserAgent ASP.NET property.
varyByCustom
setNoStore
Sets the Cache-Control: no-store HTTP header.
setRevalidation
Sets the Cache-Control HTTP header to either the must-revalidate or the proxy-revalidate directives based on the supplied enumeration value.
setOmitVaryStar
Specifies whether the response should contain the vary:* header when varying by parameters.
NOTE: You can set this property either in the Advanced settings section, or when defining the cache profiles for media content in the Global settings » Cache profiles section.
You can also add a new cache header with its own logic. For more information see For developers: Add custom cache headers.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
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.
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.
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.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important