Configure output cache

Sitefinity .NET Core pages leverages ASP.Net Core response caching. For more information, see Microsoft documentation » Response caching in ASP.NET Core.

All of the pages that are rendered by Sitefinity .NET Core Renderer are cached with an absolute expiration of 1 minute.

You can configure the cache expiration via the standard configuration for the response cache profiles. The name of the cache profile is sitefinity and

You can configure it by editing the Startup.cs file of your .NET Core Renderer application to add the AddControllersWithViews service.
Place the configuration before calling AddSitefinity to override the behavior of the response cache.

The Stertup.cs should look like this:

Was this article helpful?