HcCacheControlHeader Metabase Property
Applies To: Windows Server 2003, Windows Server 2003 with SP1
The HcCacheControlHeader property specifies the directive that IIS adds to the Cache-Control header. This header, along with the Expires header specified by HcExpiresHeader Metabase Property, 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 Metabase Property is set to false.
The World Wide Web Publishing Service (WWW service) must be restarted before changes to this property take effect.
Attribute Name | Attribute Value |
---|---|
XML Data Type |
String |
WMI Data Type |
String |
ADSI Data Type |
String |
ABO Data Type |
String |
ABO Metabase Identifier |
MD_HC_CACHE_CONTROL_HEADER |
Attributes |
NO_ATTRIBUTES |
Default Value |
max-age=86400 |
MetaFlagsEx |
CACHE_PROPERTY_MODIFIED |
User Type |
IIS_MD_UT_SERVER |
ID |
2211 |
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 |
Code Example
For general code examples, see Code Examples to Configure Metabase Properties.