### HcDoDynamicCompression

This metabase property specifies whether responses to requests for dynamic content (such as scripts in ASP pages and ISAPI extensions) will be compressed. At the global level, HcDoDynamicCompression indicates that all dynamic content will be compressed as it is requested.

For individual compression schemes, HcDoDynamicCompression specifies whether that particular compression scheme supports compression of dynamic content.

Important Because dynamic content is by definition changeable, IIS does not cache compressed versions of dynamic output. Thus, if dynamic compression is enabled, each and every response to requests for dynamic content will have to be compressed each time. Dynamic compression consumes considerable CPU time and memory resources, and it should only be used on servers that have slow networks, but CPU power to spare.

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

If you change the value of this property at the individual compression scheme level, the Web service will need to be restarted for the change to take effect.

Data type | Boolean
Default value | FALSE
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_DYNAMIC_COMPRESSION
Data type | DWORD_METADATA
User type | IIS_MD_UT_SERVER

© 1997-2001 Microsoft Corporation. All rights reserved.