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

 Posted by ArticlesMaint on 9/17/2009 | Category: ASP.NET Interview questions | Views: 6221

You can use two types of output caching to cache information that is to be transmitted to and displayed in a Web browser: -

• 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.

• 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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response