This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Cache
{
/// <summary>Specifies caching behavior for resources obtained using <see cref="T:System.Net.WebRequest" /> and its derived classes.</summary>
// Token: 0x0200030E RID: 782
[Token(Token = "0x200030E")]
public enum RequestCacheLevel
{
/// <summary>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.</summary>
// Token: 0x04000D18 RID: 3352
[Token(Token = "0x4000D18")]
Default,
/// <summary>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.</summary>
// Token: 0x04000D19 RID: 3353
[Token(Token = "0x4000D19")]
BypassCache,
/// <summary>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 <see cref="T:System.Net.WebException" /> exception is thrown if the item is not in the client cache.</summary>
// Token: 0x04000D1A RID: 3354
[Token(Token = "0x4000D1A")]
CacheOnly,
/// <summary>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.</summary>
// Token: 0x04000D1B RID: 3355
[Token(Token = "0x4000D1B")]
CacheIfAvailable,
/// <summary>Satisfies a request by using the cached copy of the resource if the timestamp is the same as the timestamp of the resource on the server; otherwise, the resource is downloaded from the server, presented to the caller, and stored in the cache.</summary>
// Token: 0x04000D1C RID: 3356
[Token(Token = "0x4000D1C")]
Revalidate,
/// <summary>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 <see langword="no-cache" /> cache control directive and the no-cache <see langword="Pragma" /> header.</summary>
// Token: 0x04000D1D RID: 3357
[Token(Token = "0x4000D1D")]
Reload,
/// <summary>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 <see langword="no-cache" /> cache control directive.</summary>
// Token: 0x04000D1E RID: 3358
[Token(Token = "0x4000D1E")]
NoCacheNoStore
}
}