Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Enabling Page Caching 

To enable page caching in a request handler

To limit the length of time for which the page is cached

  1. Query the server context for IPageCacheControl.

  2. Call IPageCacheControl::SetExpiration.

To prevent page caching once enabled

  1. Query the server context for IPageCacheControl.

  2. Call IPageCacheControl::Cache(FALSE).

    –or–

    Return HTTP_SUCCESS_NO_CACHE from any of the following:

Limitations on Cached Pages

  • Only responses to HTTP GET requests will be cached.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft