using System; namespace System.Net.Cache { /// Specifies caching behavior for resources obtained using the Hypertext Transfer protocol (HTTP). // Token: 0x02000131 RID: 305 public enum HttpRequestCacheLevel { /// Satisfies 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. The action taken is determined by the current cache policy and the age of the content in the cache. This is the cache level that should be used by most applications. // Token: 0x04000AE0 RID: 2784 Default, /// Satisfies a request by using the server. No entries are taken from caches, added to caches, or removed from caches between the client and server. This is the default cache behavior specified in the machine configuration file that ships with the .NET Framework. // Token: 0x04000AE1 RID: 2785 BypassCache, /// Satisfies a request using the locally cached resource; does not send a request for an item that is not in the cache. When this cache policy level is specified, a exception is thrown if the item is not in the client cache. // Token: 0x04000AE2 RID: 2786 CacheOnly, /// Satisfies a request for a resource from the cache if the resource is available; otherwise, sends a request for a resource to the server. If the requested item is available in any cache between the client and the server, the request might be satisfied by the intermediate cache. // Token: 0x04000AE3 RID: 2787 CacheIfAvailable, /// Compares the copy of the resource in the cache with the copy on the server. If the copy on the server is newer, it is used to satisfy the request and replaces the copy in the cache. If the copy in the cache is the same as the server copy, the cached copy is used. In the HTTP caching protocol, this is achieved using a conditional request. // Token: 0x04000AE4 RID: 2788 Revalidate, /// Satisfies a request by using the server. The response might be saved in the cache. In the HTTP caching protocol, this is achieved using the no-cache cache control directive and the no-cache Pragma header. // Token: 0x04000AE5 RID: 2789 Reload, /// Never satisfies a request by using resources from the cache and does not cache resources. If the resource is present in the local cache, it is removed. This policy level indicates to intermediate caches that they should remove the resource. In the HTTP caching protocol, this is achieved using the no-cache cache control directive. // Token: 0x04000AE6 RID: 2790 NoCacheNoStore, /// Satisfies a request for a resource either from the local computer's cache or a remote cache on the local area network. If the request cannot be satisfied, a exception is thrown. In the HTTP caching protocol, this is achieved using the only-if-cached cache control directive. // Token: 0x04000AE7 RID: 2791 CacheOrNextCacheOnly, /// Satisfies a request by using the server or a cache other than the local cache. Before the request can be satisfied by an intermediate cache, that cache must revalidate its cached entry with the server. In the HTTP caching protocol, this is achieved using the max-age = 0 cache control directive and the no-cache Pragma header. // Token: 0x04000AE8 RID: 2792 Refresh } }