Updated: February 29, 2012
Applies To: Windows Server 2012 R2, Windows Server 2012
Use the Compression feature page to provide faster transmission times between IIS and compression-enabled browsers. Compression is helpful if your site uses lots of bandwidth, or if you want to use bandwidth more effectively. Compression can improve performance if your network bandwidth is restricted as it is, for example, with mobile phone clients. Compression also helps improve performance in a data center environment.
IIS provides the following compression options:
Static files only
Dynamic application responses only
Both static files and dynamic application responses
The following tables describe the UI elements that are available on the feature page and in the Actions pane.
Enable static content compression
Configures IIS to compress static content.
Enable dynamic content compression
Configures IIS to compress dynamic content.
Only compress files larger than (in bytes)
Defines the minimum file size that you want IIS to compress. The default size is 256 bytes.
Defines the path of a local directory where a static file is cached after it is compressed, either until it expires or until the content changes. For security reasons, this temporary directory must be on a local drive on an NTFS-formatted partition. The directory cannot be compressed, and should not be shared.
Per application pool disk space limit (in MB)
Sets the maximum amount of space, in megabytes, you want IIS to use when compressing static content. When this setting is defined, IIS automatically empties the temporary directory when the set limit is reached. The default limit is 100 MB per application pool.
Saves the changes that you have made on the feature page.
Cancels the changes that you have made on the feature page.