O'Reilly logo

ASP.NET Site Performance Secrets by Matt Perdeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Output caching

Output caching lets you cache entire pages or sections of pages on the server itself. It gives you the following advantages:

  • Flexibility: Supports caching different versions of files, by query string variable, request header, or a custom variable.
  • Allows caching of parts of a page.
  • Life span of cached items is relatively predictable—no competition for cache space by other websites. This may not apply if you use shared hosting, where many websites use the same web server.

It comes with the following disadvantages as well:

  • Not really suitable for caching visitor-specific pages because this would mean storing many pages with low hit rates.
  • Uses server memory.
  • No caching across servers because the cache is all in server memory. In a web ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required