Specifying the Cache Location

You can use the Location attribute of the <%@ OutputCache %> directive to specify where a page is cached. This attribute accepts the following values:

Any The page is cached on the browser, proxy servers, and web server (the default value).

Client The page is cached only on the browser.

Downstream The page is cached on the browser and any proxy servers, but not the web server.

None The page is not cached.

Server The page is cached on the web server, but not the browser or any proxy servers.

ServerAndClient The page is cached on the browser and web server, but not on any proxy servers.

By default, when you use Page Output Caching, a page is cached in three locations: the web server, any proxy servers, ...

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.