HttpCachePolicy.SetRevalidation Method
.NET Framework 3.0
Sets the Cache-Control HTTP header to either the must-revalidate or the proxy-revalidate directives based on the supplied enumeration value.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public void SetRevalidation ( HttpCacheRevalidation revalidation )
public function SetRevalidation ( revalidation : HttpCacheRevalidation )
Not applicable.
Parameters
- revalidation
The HttpCacheRevalidation enumeration value to set the Cache-Control header to.
The default, which is equivalent to None, is to send neither directive in a header unless explicitly specified by this method.
The following code example demonstrates how to set cache revalidation to AllCaches.
get_Response().get_Cache().SetRevalidation(
HttpCacheRevalidation.AllCaches);
Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches)
Community Additions
ADD
Show: