[This is preliminary documentation and subject to change]

### HcCompressionDirectory

This metabase property specifies the directory where compressed versions of static files are temporarily cached. If compression is enabled for IIS, every time IIS receives a request for a static file (such as an .htm or .txt file), the server searches the compression directory for an already-compressed version of the static file being requested.

To force IIS to recompress all outgoing static files, erase all files found in the compression directory specified by HcCompressionDirectory.

Important It is strongly recommended that the directory specified by HcCompressionDirectory reside on an NTFS volume, not on a FAT volume. If the file being requested resides on an NTFS volume, and you have set HcCompressionDirectory to specify a FAT volume, IIS will not perform any HTTP compression on that file. This behavior is due to a number of differences between FAT and NTFS volumes, including different time stamping and access control mechanisms. In addition, NTFS handles directories that contain a large number of files more efficiently than FAT volumes do.

Attribute Name | Attribute Value
Data Type | EXPANDSZ
Attributes | NO_ATTRIBUTES
Default Value | %Windir%\IIS Temporary Compressed Files
MetaFlagsEx | CACHE_PROPERTY_MODIFIED
User Type | IIS_MD_UT_SERVER
StartingNumber |
EndingNumber |
ID | 2210

### Access Locations

This property is accessible at the following locations:

Metabase Path | IIS Admin Object Type

### 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_COMPRESSION_DIRECTORY
Data type | EXPANDSZ
User type | IIS_MD_UT_SERVER

Related Topics

HcDoOnDemandCompression

© 1997-2001 Microsoft Corporation. All rights reserved.