RequestCachingSection.UnspecifiedMaximumAge Property

Definition

Gets or sets a value used as the maximum age for cached resources that do not have expiration information.

C#
[System.Configuration.ConfigurationProperty("unspecifiedMaximumAge", DefaultValue="1.00:00:00")]
public TimeSpan UnspecifiedMaximumAge { get; set; }

Property Value

A TimeSpan that provides a default maximum age for cached resources.

Attributes

Remarks

Setting this property ensures that a resource that does not have expiration header information does not remain fresh in the cache indefinitely.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1