caching Element [IIS Settings Schema]

Note

For more information about the cache element, see the following topic on the Microsoft IIS.net Web site: Cache <cache>.

Configures output cache settings.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

enabled

Optional Boolean attribute.

Specifies whether page output caching is enabled.

The default value is true.

enableKernelCache

Optional Boolean attribute.

Specifies whether kernel caching is enabled.

The default value is true.

maxCacheSize

Optional integer attribute.

Specifies the maximum size of the output cache.

The default value is 0.

Note

This setting is effective only at the level of the ApplicationHost.config file. If you set this property at a lower level, it will have no effect.

maxResponseSize

Optional integer attribute.

Specifies the maximum response size that can be cached.

The default value is 262144.

Note

This setting is effective only at the level of the ApplicationHost.config file. If you set this property at a lower level, it will have no effect.

Child Elements

Element

Description

profiles

Optional element.

Contains a group of output cache settings that can be applied to ASP.NET pages.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

Remarks

For more information about the cache element, see the following topic on the Microsoft IIS.net Web site: Cache <cache>.

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

See Also

Reference

profiles Element for caching [IIS Settings Schema]