CacheControlHeaderValue::OnlyIfCached Property

.NET Framework (current version)
 

Whether a cache should either respond using a cached entry that is consistent with the other constraints of the HTTP request, or respond with a 504 (Gateway Timeout) status.

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

public:
property bool OnlyIfCached {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if a cache should either respond using a cached entry that is consistent with the other constraints of the HTTP request, or respond with a 504 (Gateway Timeout) status; otherwise, false.

This property represents the "only-if-cached" directive in a cache-control header field on an HTTP request.

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: