Condividi tramite


staticContent Element [IIS Settings Schema]

Note

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

Configures static file request handler settings.

Syntax

Attributes and Elements

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

Attributes

Attribute

Description

defaultDocFooter

Optional string attribute.

Specifies either the default footer text for every Web page on a site, or the path of a file that contains the default footer text. How this property is read depends on the setting of the isDocFooterFileName attribute.

Note

The custom footer will only be sent if the enableDocFooter attribute is set to true.

enableDocFooter

Optional Boolean attribute.

Specifies whether the text indicated by the defaultDocFooter attribute will appear on every static page on a Web site.

The default value is false.

isDocFooterFileName

Optional Boolean attribute.

Specifies whether the string in the defaultDocFooter attribute contains a path of a file that contains the default footer text for every static Web page on a site.

The default value is false.

Child Elements

Element

Description

clientCache

Optional element.

Specifies settings for caching static content that is sent to the client.

mimeMaps

Optional element.

Specifies a list of the file name extensions for MIME mappings.

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 staticContent element, see the following topic on the Microsoft IIS.net Web site: Static Content <staticContent>.

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

clientCache Element for staticContent [IIS Settings Schema]

mimeMap Element for staticContent [IIS Settings Schema]