CacheControlHeaderValue::MinFresh Property

.NET Framework (current version)
 

The freshness lifetime, in seconds, that an HTTP client is willing to accept a response.

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

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

Property Value

Type: System::Nullable<TimeSpan>

The time in seconds.

This property represents the "min-fresh" directive in a cache-control header field on an HTTP request.

The property indicates that the HTTP client is willing to accept a response whose freshness lifetime is no less than its current age plus the freshness lifetime specified time in seconds. The client wants a response that will still be fresh for at least the current age plus the freshness lifetime.

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: