### HcDoStaticCompression

This metabase property specifies whether IIS will compress responses to requests for static content. At the global level, HcDoStaticCompression indicates that IIS will respond to requests for static content (such as .htm and .txt files) by first checking the compression directory specified by HcCompressionDirectory. If a compressed version of the static file is found in the directory, it will be sent to the client browser. Otherwise, if on-demand compression is enabled with HcDoOnDemandCompression, IIS will send the requested file in uncompressed form, and add that file to the background compression queue.

At the individual compression scheme level, HcDoStaticCompression indicates whether the individual compression scheme supports compression of static files.

Because HcDoStaticCompression is not inheritable, in order for static compression to actually be enabled for a server, HcDoStaticCompression must be set to TRUE at both the global level and individual scheme level.

If you change the value of this property at the individual compression scheme level, the Web service must be restarted before the change takes effect.

Data type | Boolean
Default value | TRUE
Inheritance | Not inheritable

###### Access Locations

This property is accessible at the following locations:

Metabase Path | Key Type
/LM/W3SVC/Filters/Compression/Parameters | IIsCompressionSchemes
/LM/W3SVC/Filters/Compression/Scheme | IIsCompressionScheme

###### IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier | MD_HC_DO_STATIC_COMPRESSION
Data type | DWORD_METADATA
User type | IIS_MD_UT_SERVER

© 1997-2001 Microsoft Corporation. All rights reserved.