Call this method to transmit an item from the page cache. Override this method to control the way in which cached items are transmitted to the client.
virtual BOOL TransmitFromCache( AtlServerRequest* pRequestInfo, BOOL * pbAllowCaching ) throw( );
- Pointer to the object holding information about the request.
- Pointer to the variable that, if TransmitFromCache returns FALSE, indicates whether the response to the current request can be cached.
Returns TRUE on success, FALSE on failure.
If the item identified by strCacheUrl is in the cache and the current user has access, it is transmitted asynchronously.
This method returns FALSE if the HTTP request method is anything other than GET or if the page is not in the cache.
*pbAllowCaching is set to FALSE if the file is invalid or could not be opened.
Typically this method is executed in the security context of the current client. If necessary, you can override this method in a derived class to change the security context before calling the base class implementation then revert to the original security context before returning. See CIsapiExtension::GetCacheServerContext for more details on why you might want to do this.