Share via


HcCompressionDirectory Metabase Property

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

The HcCompressionDirectory 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 requested static file.

To force IIS to recompress all outgoing static files, delete 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 file system 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 HTTP compression on that file. This behavior is due to a number of differences between FAT and NTFS volumes, such as 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

XML Data Type

EXPANDSZ

WMI Data Type

String

ADSI Data Type

EXPANDSZ

ABO Data Type

EXPANDSZ

ABO Metabase Identifier

MD_HC_COMPRESSION_DIRECTORY

Attributes

NO_ATTRIBUTES

Default Value

%windir%\iis temporary compressed files

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

2210

Configurable Locations

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

Metabase Path IIS Admin Object Type

/LM/W3SVC/Filters/Compression/Parameters

IIsCompressionSchemes

Code Example

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