Object used to configure page output caching - Caching pages and data - Response

Q.  You need to programmatically configure page output caching. Which object would you use?
- Published on 16 Jun 15

a. Request
b. Response
c. Application
d. Server

ANSWER: Response
 
The Response object have methods such as Response.Cache.SetExpires and Response.AddCacheDependency that enables you to configure page output caching programmatically.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)