System.Net.Cache.RequestCachePolicy Class

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

See Also: RequestCachePolicy Members


public class 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