Udostępnij za pośrednictwem


DoDynamicCompression Metabase Property

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

The DoDynamicCompression property performs the same function as the global HcDoDynamicCompression property, but it is used for enabling and disabling static content compression at the individual site or site element level.

Before you can use DoDynamicCompression to customize compression at the site or site element level, at least one compression scheme (gzip or deflate) must be enabled in the HcDoDynamicCompression property at the IIsCompressionScheme level. This setting determines which compression schemes IIS will support for dynamic content: gzip, deflate, or both.

You can either enable compression of dynamic content server-wide and then disable it at specific locations, or you can disable compression of dynamic content server-wide and then enable it only at the locations you specify. For more information about these two approaches, see the HcDoDynamicCompression Metabase Property.

Attribute Name Attribute Value

XML Data Type

Boolean

WMI Data Type

Boolean

ADSI Data Type

Boolean

ABO Data Type

Boolean

ABO Metabase Identifier

MD_HC_DO_NAMESPACE_DYNAMIC_COMPRESSION

Attributes

INHERIT

Default Value

false

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_FILE

ID

2255

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type

/LM/W3SVC/n/ROOT

/LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

/LM/W3SVC/n

IIsWebServer

/LM/W3SVC

IIsWebService

/LM/W3SVC/n/ROOT/file_name

/LM/W3SVC/n/ROOT/virtual_directory_name/file_name

IIsWebFile

/LM/W3SVC/n/ROOT/physical_directory_name

/LM/W3SVC/n/virtual_directory_name/physical_directory_name

IIsWebDirectory

Code Example

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