System.Net.WebResponse.IsFromCache Property

Gets a bool value that indicates whether this response was obtained from the cache.

Syntax

[System.MonoTODO]
public virtual bool IsFromCache { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The current cache policy and the presence of the requested resource in the cache determine whether a response can be retrieved from the cache. Using cached responses usually improves application performance, but there is a risk that the response in the cache does not match the response on the server. Use the WebRequest.CachePolicy property to set and the System.Net.Cache.RequestCachePolicy class to enumerate the current caching policy.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0