CacheControlHeaderValue.MaxStaleLimit Property

Definition

The maximum time, in seconds, an HTTP client is willing to accept a response that has exceeded its expiration time.

public:
 property Nullable<TimeSpan> MaxStaleLimit { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? MaxStaleLimit { get; set; }
member this.MaxStaleLimit : Nullable<TimeSpan> with get, set
Public Property MaxStaleLimit As Nullable(Of TimeSpan)

Property Value

The time in seconds.

Remarks

This property represents the value assigned to "max-stale" directive in a cache-control header field on an HTTP request.

If the MaxStaleLimit property is assigned a value other than zero, then the client is willing to accept a response that has exceeded its expiration time by no more than the specified number of seconds. If a value of zero is assigned to the MaxStaleLimit property, then the client is willing to accept a stale response of any age.

Applies to