[This is preliminary documentation and subject to change]
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.
| Attribute Name | Attribute Value |
| Data Type | BOOL |
| Attributes | NO_ATTRIBUTES |
| Default Value | FALSE |
| MetaFlagsEx | CACHE_PROPERTY_MODIFIED |
| User Type | IIS_MD_UT_SERVER |
| StartingNumber | |
| EndingNumber | 0 |
| ID | 2213 |
This property is accessible at the following locations:
| Metabase Path | IIS Admin Object Type |
| /LM/W3SVC/Filters/Compression/gzip | IIsCompressionScheme |
| /LM/W3SVC/Filters/Compression/Parameters | IIsCompressionSchemes |
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 | BOOL |
| User type | IIS_MD_UT_SERVER |