Gets or sets a value that indicates whether output caching is enabled.
Assembly: System.Web (in System.Web.dll)
In order to cache a response, the following criteria need to be met:
Caching must be explicitly enabled by a page directive or by the caching API.
Caching must have an expiration policy so that the kernel knows when to discard it.
Caching cannot have any variable headers or parameters.
The request must not require any authentication.
This property is relevant only when Internet Information Services (IIS) version 6.0 or later is installed.
The following example shows how to use the property.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.