System::Net::Cache::RequestCacheLevel enum

RequestCacheLevel enum

The enum describes cache settings applicable for any WebRequest.

enum class RequestCacheLevel

Values

NameValueDescription
Default0Satisfies a request for a resource either by using the cached copy of the resource or by sending a request for the resource to the server.
BypassCache1Satisfies a request by using the server. No entries are taken from the cache.
CacheOnly2Satisfies a request for a resource only from the cache. WebException will be thrown when a resource is not in the client cache.
CacheIfAvailable3Satisfies a request for a resource from the cache if the resource is available, otherwise sends a request to the server.
Revalidate4Using a resource local copy if the client timestamp is the same as the timestamp of the resource on the server. Otherwise, a resource is downloaded from a server.
Reload5A resource is always downloaded from the server.
NoCacheNoStore6Never satisfies a request by using resources from the cache and does not cache resources.

See Also