Partager via


HcCompressionDirectory

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.

ms524803.alert_caution(en-us,VS.90).gifImportant Note:

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.

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

EXPANDSZ

ABO Data Type

EXPANDSZ_METADATA

Schema Default

%Windir%\IIS Temporary Compressed Files

Internal Default

%windir%\IIS Temporary Compressed Files

Upper Bound

Not specified

Lower Bound

Not specified

Internal ID

2210

Friendly ID

MD_HC_COMPRESSION_DIRECTORY

Property Attributes

NO_ATTRIBUTES

User Type

IIS_MD_UT_SERVER

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

Flags

There are no flags for this property.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also