Registers a validation callback for the current response.
[Visual Basic] Public Sub AddValidationCallback( _ ByVal handler As HttpCacheValidateHandler, _ ByVal data As Object _ ) [C#] public void AddValidationCallback( HttpCacheValidateHandler handler, object data ); [C++] public: void AddValidationCallback( HttpCacheValidateHandler* handler, Object* data ); [JScript] public function AddValidationCallback( handler : HttpCacheValidateHandler, data : Object );
Before the response is served from the cache, it [RB34] will call all registered handlers to ensure resource validity. If any handler sets a flag indicating that the resource is invalid, entry is marked invalid and evicted from the cache. The request is then handled as if it were a cache miss.
HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace