Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

OutputCacheSection Class [IIS 7 and higher]

IIS 7.0

Specifies output cache settings for an ASP.NET application.

class OutputCacheSection : ConfigurationSection

The following table lists the methods exposed by the OutputCacheSection class.

Name

Description

GetAllowDefinition

(Inherited from ConfigurationSection.)

GetAllowLocation

(Inherited from ConfigurationSection.)

RevertToParent

(Inherited from ConfigurationSection.)

SetAllowDefinition

(Inherited from ConfigurationSection.)

SetAllowLocation

(Inherited from ConfigurationSection.)

The following table lists the properties exposed by the OutputCacheSection class.

Name

Description

EnableFragmentCache

A read/write boolean value. true if the application fragment cache is enabled; otherwise, false. The default is true.

If the fragment cache is disabled, no pages are cached, regardless of the @ OutputCache directive or caching profile used.

EnableKernelCacheForVaryByStar

A read/write boolean value. true if kernel caching is enabled for the application when "Vary: *" headers are included in cached pages; otherwise, false. The default is false.

EnableOutputCache

A read/write boolean value. true if the page output cache is enabled; otherwise, false. The default is true.

If the output cache is disabled, no pages are cached, regardless of any programmatic or declarative settings.

Location

(Inherited from ConfigurationSection.) A key property.

OmitVaryStar

An optional read/write boolean value. true if an HTTP "Vary: *" header is omitted in the response; otherwise, false. The default is false, which sends a "Vary: *" header for output cached pages.

The Vary header indicates the request-header fields that the server uses to determine which of multiple cached responses are sent in response to a client request.

Path

(Inherited from ConfigurationSection.) A key property.

SectionInformation

(Inherited from ConfigurationSection.)

SendCacheControlHeader

An optional read/write boolean value. true if the Cache-Control: private header is sent by the output cache module by default; otherwise, false. The default is true.

This class contains no subclasses.

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.