Share via


HcFileExtensions Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The HcFileExtensions indicates which file name extensions are supported by the compression scheme. Only static files with the specified file extensions are compressed by IIS. If this setting is empty, no static files are compressed.

In addition to file name extension matches, HcDoOnDemandCompression Metabase Property and HcDoStaticCompression Metabase Property must be set to true for compression to be performed.

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

Attribute Name Attribute Value

XML Data Type

MULTISZ

WMI Data Type

MULTISZ

ADSI Data Type

MULTISZ

ABO Data Type

MULTISZ

ABO Metabase Identifier

MD_HC_FILE_EXTENSIONS

Attributes

NO_ATTRIBUTES

Default Value

null

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

2238

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/gzip

/LM/W3SVC/Filters/Compression/deflate

IIsCompressionScheme

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.