CacheControlHeaderValue::NoCache Property

.NET Framework (current version)
 

Whether an HTTP client is willing to accept a cached response.

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

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

Property Value

Type: System::Boolean

true if the HTTP client is willing to accept a cached response; otherwise, false.

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

When the NoCache property is set to true present in a HTTP request message, an application should forward the request toward the origin server even if it has a cached copy of what is being requested.

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: