Partager via


HcCacheControlHeader

The HcCacheControlHeader property specifies the directive that IIS adds to the Cache-Control header. This header, along with the Expires header specified by HcExpiresHeader, is included with every compressed file that is sent to a client browser.

The HcCacheControlHeader property specifies a header that overrides the HTTP Expires header, which is specified by HcExpiresHeader, and is included to ensure that older clients and proxy servers do not attempt to cache compressed files.

Neither the header specified by HcCacheControlHeader nor the header specified by HcExpiresHeader is sent with a response if the metabase property HcSendCacheHeaders is set to false.

The World Wide Web Publishing Service (WWW service) must be restarted before changes to this property take effect.

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

STRING

ABO Data Type

STRING_METADATA

Schema Default

max-age=86400

Internal Default

maxage=86400

Upper Bound

Not specified

Lower Bound

Not specified

Internal ID

2211

Friendly ID

MD_HC_CACHE_CONTROL_HEADER

Property Attributes

NO_ATTRIBUTES

User Type

IIS_MD_UT_SERVER

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path

IIS Admin Object Type

/LM/W3SVC/Filters/Compression/Parameters

IIsCompressionSchemes

Flags

There are no flags for this property.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also