ASP.NET OutputCache directive is defined at page level and used by the ASP.NET page parser and compiler.
Syntax
Attributes | Description |
---|---|
CacheProfile | Specifies name of cache profile details in the web.config. |
DiskCacheable | Specifies whether to save cache on disk. |
Duration | Specifies duration time in seconds of output cache. |
Location | Specifies the location of cache. |
NoStore | Specifies whether to send no-store header with page. |
SqlDependency | Specifies to enable SQL Server cache invalidation for page. |
VaryByControl | Specifies string to vary the output cache. |
VaryByCustom | Specifies string to customoutput cache. |
VaryByHeader | Specifies HTTP headers to vary the output cache. |
VaryByParam | Specifies string to vary output cache. |