DoStaticCompression Metabase Property (IIS 6.0)
The DoStaticCompression property performs the same function as the global HcDoStaticCompression Metabase Property property, but is used for enabling or disabling static content compression at the individual site or site element level.
Before you can use DoStaticCompression to customize compression at the site or site element level, at least one compression scheme (gzip or deflate) must be enabled in the HcDoStaticCompression property at the IIsCompressionScheme level. This setting determines which compression schemes IIS will support for static content: gzip, deflate, or both.
You can either enable compression of static content server-wide and then disable it at specific locations, or you can disable compression of static content server-wide and then enable it only at the locations you specify. For more information about these two approaches, see HcDoStaticCompression Metabase Property.
You can configure this property at the following locations in the IIS metabase.
For general code examples, see Code Examples to Configure Metabase Properties.