System.Net.Cache.HttpRequestCachePolicy Class

Defines an application's caching requirements for resources obtained by using System.Net.HttpWebRequest objects.

See Also: HttpRequestCachePolicy Members


public class HttpRequestCachePolicy : RequestCachePolicy


You can specify a default cache policy for your application by using the System.Net.HttpWebRequest.DefaultCachePolicy property or the application or machine configuration files. For more information, see RequestCaching Element (Network Settings).

You can specify the cache policy for an individual request by using the System.Net.WebRequest.CachePolicy property.

Caching for Web services is not supported.


Namespace: System.Net.Cache
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0