Editare

Partajați prin


CacheControlHeaderValue.MaxAge Property

Definition

The maximum age, specified in seconds, that the HTTP client is willing to accept a response.

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

The time in seconds.

Remarks

This property represents the "max-age" directive in a cache-control header field on an HTTP request or HTTP response.

Unless the MaxStale property is also set, the client is not willing to accept a stale response.

Applies to