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.
Data type | String (with replacement) |
Default value | %windir%\IIS Temporary Compressed Files |
Inheritance | Not inheritable |
This property is accessible at the following locations:
Metabase Path | Key Type |
/LM/W3SVC/Filters/Compression/Parameters | IIsCompressionSchemes |
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_METADATA |
User type | IIS_MD_UT_SERVER |