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

Q

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

✍: Guest

A

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.

2009-05-12, 4573👍, 0💬