System.Web Namespace HttpCachePolicy Class
Sets the Cache-Control HTTP header to either the must-revalidate or the proxy-revalidate directives based on the supplied enumeration value.
[ VB ]
Public Sub SetRevalidation ( _
ByVal revalidation As HttpCacheRevalidation _
)
[ C# ]
public void SetRevalidation (
HttpCacheRevalidation revalidation
);
[ C++ ]
public: void SetRevalidation (
HttpCacheRevalidation revalidation
);
[ JScript ]
public function SetRevalidation (
revalidation : HttpCacheRevalidation
);
- revalidation
- The HttpCacheRevalidation enumeration value to set the Cache-Control header to.
The default is to send neither directive in a header unless explicitly specified by this method.
The following example sets cache revalidation to on ( true ).
[ VB ]
Response.Cache.SetRevalidation ( HttpCacheRevalidation.AllCaches )
[ C# ]
Response.Cache.SetRevalidation ( HttpCacheRevalidation.AllCaches );
[ JScript ]
Response.Cache.SetRevalidation ( HttpCacheRevalidation.AllCaches )
HttpCachePolicy Members Caching ASP.NET Pages