CacheControlHeaderValue.MaxAge Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value for the max-age
directive.
max-age specifies the maximum amount of time the response is considered fresh.
public:
property Nullable<TimeSpan> MaxAge { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? MaxAge { get; set; }
member this.MaxAge : Nullable<TimeSpan> with get, set
Public Property MaxAge As Nullable(Of TimeSpan)
Property Value
Remarks
See https://tools.ietf.org/html/rfc7234#section-5.2.1.1.