| |||||
HttpCachePolicy.SetRevalidation MethodSystem.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 ); Parameters
Exceptions
RemarksThe default is to send neither directive in a header unless explicitly specified by this method. ExampleThe 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 ) See AlsoHttpCachePolicy Members Caching ASP.NET Pages |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme