HttpCacheRevalidation HttpCacheRevalidation HttpCacheRevalidation HttpCacheRevalidation Enum

定义

提供用于设置重新验证特定的 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
继承
HttpCacheRevalidationHttpCacheRevalidationHttpCacheRevalidationHttpCacheRevalidation

字段

AllCaches AllCaches AllCaches AllCaches 1

将 HTTP 标头设置为 Cache-Control: must-revalidateSets the HTTP header to Cache-Control: must-revalidate.

None None None None 3

如果已设置该值,则不发送任何缓存重新验证指令。If this value is set, no cache-revalidation directive is sent. 默认值。The default value.

ProxyCaches ProxyCaches ProxyCaches ProxyCaches 2

将 HTTP 标头设置为 Cache-Control: proxy-revalidateSets the HTTP header to Cache-Control: proxy-revalidate.

注解

枚举用于设置重新验证特定的 HTTP 标头, 并SetRevalidation使用方法进行设置。 HttpCacheRevalidationThe HttpCacheRevalidation enumeration is used to set revalidation-specific HTTP headers, and is set using the SetRevalidation method. 如果未调用Cache-Control SetRevalidation方法, 则不会设置 HTTP 标头。If the SetRevalidation method is not called, no Cache-Control HTTP header is set.

适用于

另请参阅