Thursday, May 24, 2012

What are different types of caching using cache object of ASP.NET?

What are different types of caching using cache object of ASP.NET?

You can use two types of output caching to cache information that is to be transmitted to and displayed in a Web browser:
  1. Page Output Caching - Page output caching adds the response of page to cache object. Later when page is requested page is displayed from cache rather than creating the page object and displaying it. Page output caching is good if the site is fairly static. 
  2. Page Fragment Caching - If parts of the page are changing, you can wrap the static sections as user controls and cache the user controls using page fragment caching.

No comments:

Post a Comment