Overview of Caching

The ASP.NET 4 Framework supports the following types of caching:

• Page Output Caching

• Partial Page Caching

• DataSource Caching

• Data Caching

Page Output Caching enables you to cache the entire rendered contents of a page in memory (everything that you see when you select View Source in your web browser). The next time that any user requests the same page, the page is retrieved from the cache.

Page Output Caching caches an entire page. In some situations, this might create problems. For example, if you want to display different banner advertisements randomly in a page, and you cache the entire page, the same banner advertisement displays with each page request.

Note

The AdRotator control included in ASP.NET Framework ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.