Läs på engelska Redigera

Dela via


HttpCacheRevalidation Enum

Definition

Provides enumerated values that are used to set revalidation-specific Cache-Control HTTP headers.

C#
public enum HttpCacheRevalidation
Inheritance
HttpCacheRevalidation

Fields

Name Value Description
AllCaches 1

Sets the HTTP header to Cache-Control: must-revalidate.

ProxyCaches 2

Sets the HTTP header to Cache-Control: proxy-revalidate.

None 3

If this value is set, no cache-revalidation directive is sent. The default value.

Remarks

The HttpCacheRevalidation enumeration is used to set revalidation-specific HTTP headers, and is set using the SetRevalidation method. If the SetRevalidation method is not called, no Cache-Control HTTP header is set.

Applies to

Produkt Versioner
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also