OutputCacheOptions.DefaultExpirationTimeSpan Property

Definition

The duration a response is cached when no specific value is defined by a policy. The default is set to 60 seconds.

C#
public TimeSpan DefaultExpirationTimeSpan { get; set; }

Property Value

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0