CacheControlHeaderValue::MaxStaleLimit Property

.NET Framework (current version)
 

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

Namespace:   System.Net.Http.Headers
Assembly:  System.Net.Http (in System.Net.Http.dll)

public:
property Nullable<TimeSpan> MaxStaleLimit {
	Nullable<TimeSpan> get();
	void set(Nullable<TimeSpan> value);
}

Property Value

Type: System::Nullable<TimeSpan>

The time in seconds.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: