HttpCacheRevalidation 列舉

定義

提供用來設定重新驗證專用的 Cache-Control HTTP 標頭的列舉值。Provides enumerated values that are used to set revalidation-specific Cache-Control HTTP headers.

public enum class HttpCacheRevalidation
public enum HttpCacheRevalidation
type HttpCacheRevalidation = 
Public Enum HttpCacheRevalidation
繼承
HttpCacheRevalidation

欄位

AllCaches 1

將 HTTP 標頭設為 Cache-Control: must-revalidateSets the HTTP header to Cache-Control: must-revalidate.

None 3

如果設定這個值,不會送出快取重新驗證指示詞 (Cache-Revalidation Directive)。If this value is set, no cache-revalidation directive is sent. 預設值。The default value.

ProxyCaches 2

將 HTTP 標頭設為 Cache-Control: proxy-revalidateSets the HTTP header to Cache-Control: proxy-revalidate.

備註

HttpCacheRevalidation列舉是用來設定重新驗證特定的 HTTP 標頭,並使用方法來設定 SetRevalidationThe HttpCacheRevalidation enumeration is used to set revalidation-specific HTTP headers, and is set using the SetRevalidation method. 如果 SetRevalidation 未呼叫方法,則不 Cache-Control 會設定 HTTP 標頭。If the SetRevalidation method is not called, no Cache-Control HTTP header is set.

適用於

另請參閱