Dela via


HcOnDemandCompLevel Metabase Property

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

The HcOnDemandCompLevel property specifies the compression level for the compression scheme, when the scheme is to compress static content on demand. Low compression levels produce slightly larger compressed files, but with lower overall impact on CPU and memory resources. Higher compression levels generally result in small compressed files but with higher CPU and memory usage.

Valid compression levels range from 1 to 10.

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

Attribute Name Attribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

MD_HC_ON_DEMAND_COMP_LEVEL

Attributes

NO_ATTRIBUTES

Default Value

10

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

2242

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.