This documentation is archived and is not being maintained.
OutputCacheLocation Enumeration
Visual Studio 2010
Specifies the valid values for controlling the location of the output-cached HTTP response for a resource.
Assembly: System.Web (in System.Web.dll)
| Member name | Description | |
|---|---|---|
| Any | The output cache can be located on the browser client (where the request originated), on a proxy server (or any other server) participating in the request, or on the server where the request was processed. This value corresponds to the HttpCacheability::Public enumeration value. | |
| Client | The output cache is located on the browser client where the request originated. This value corresponds to the HttpCacheability::Private enumeration value. | |
| Downstream | The output cache can be stored in any HTTP 1.1 cache-capable devices other than the origin server. This includes proxy servers and the client that made the request. | |
| Server | The output cache is located on the Web server where the request was processed. This value corresponds to the HttpCacheability::Server enumeration value. | |
| None | The output cache is disabled for the requested page. This value corresponds to the HttpCacheability::NoCache enumeration value. | |
| ServerAndClient | The output cache can be stored only at the origin server or at the requesting client. Proxy servers are not allowed to cache the response. This value corresponds to the combination of the HttpCacheability::Private and HttpCacheability::Server enumeration values. |
The values specified by this enumeration are used when you include an @ OutputCache directive in an .aspx file. These values determine the cache location for page output. For more information, see Caching ASP.NET Pages.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: