HttpCachePolicyElement.MaximumAge Property

Definition

Gets or sets the maximum age permitted for a resource returned from the cache.

[System.Configuration.ConfigurationProperty("maximumAge", DefaultValue="10675199.02:48:05.4775807")]
public TimeSpan MaximumAge { get; set; }

Property Value

A TimeSpan value that specifies the maximum age for cached resources specified in the configuration file.

Attributes

Remarks

If the cached copy of the resource is older than the specified time value, the resource must be revalidated by comparing the cached resource to the resource on the server.

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