System.Web.HttpCachePolicy.SetRevalidation Method

Sets the Cache-Control HTTP header to either the must-revalidate or the proxy-revalidate directives based on the supplied enumeration value.

Syntax

public void SetRevalidation (HttpCacheRevalidation revalidation)

Parameters

revalidation
The System.Web.HttpCacheRevalidation enumeration value to set the Cache-Control header to.

Remarks

The default, which is equivalent to HttpCacheRevalidation.None, is to send neither directive in a header unless explicitly specified by this method.

HttpCachePolicy.SetRevalidation(HttpCacheRevalidation) is introduced in the .NET Framework version 3.5. For more information, see The .NET Framework 3.5 Architecture.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0