Enabling Page Caching
To enable page caching in a request handler
Include ATLSRV_INIT_USECACHE in the flags returned from IRequestHandler::GetFlags. This is most easily achieved for IRequestHandlerImpl-derived classes (including CRequestHandlerT) by overriding IRequestHandlerImpl::CachePage to return TRUE. If no further action is taken, the page will be cached indefinitely.
To limit the length of time for which the page is cached
To prevent page caching once enabled
Limitations on Cached Pages
Only responses to HTTP GET requests will be cached.