CacheControlHeaderValue.MaxAge Property

Definition

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.

Applies to