From 17c4e8a51564148c3b334dcbc143a83f269fa8da Mon Sep 17 00:00:00 2001 From: Remco Eissing Date: Mon, 19 Nov 2018 11:44:05 +0100 Subject: [PATCH 1/5] Update to httpCompression attributes --- .../system.webServer/httpCompression/index.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/iis/configuration/system.webServer/httpCompression/index.md b/iis/configuration/system.webServer/httpCompression/index.md index 1513993aa..31c241f3c 100644 --- a/iis/configuration/system.webServer/httpCompression/index.md +++ b/iis/configuration/system.webServer/httpCompression/index.md @@ -181,6 +181,8 @@ HTTP compression is usually available on the default installation of IIS 7 and l ### Attributes +These attributes can only be configured at server level. Configuration at a site level or lower will be ignored. + | Attribute | Description | | --- | --- | | `cacheControlHeader` | Optional string attribute.

Specifies the directive that IIS adds to the Cache-Control header that overrides the HTTP Expires header. This attribute ensures that older clients and proxy servers do not attempt to cache compressed files. To enable this setting, you must set the **sendCacheHeaders** attribute to **true**. The WWW service must be restarted before changes to this property take effect.

The default value is `max-age=86400`. | @@ -204,9 +206,9 @@ HTTP compression is usually available on the default installation of IIS 7 and l | Element | Description | | --- | --- | -| [`scheme`](scheme.md) | Optional element.

Specifies the compression scheme (Gzip or Deflate) IIS uses to compress client requests. | -| [`dynamicTypes`](dynamictypes/index.md) | Optional element.

Specifies configuration settings for dynamic compression. | -| [`staticTypes`](statictypes/index.md) | Optional element.

Specifies configuration settings for static compression. | +| [`scheme`](scheme.md) | Optional element.

Specifies the compression scheme (Gzip or Deflate) IIS uses to compress client requests. This element can only be configured at server level. | +| [`dynamicTypes`](dynamictypes/index.md) | Optional element.

Specifies configuration settings for dynamic compression. This element can be configured at site level. | +| [`staticTypes`](statictypes/index.md) | Optional element.

Specifies configuration settings for static compression. This element can be configured at site level. | ### Configuration Sample From e0fe4fd33c2dda1de1a0607b6c67b014e3ec6da2 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Tue, 1 Apr 2025 11:13:37 -1000 Subject: [PATCH 2/5] Update compression settings description for IIS versions --- iis/configuration/system.webServer/httpCompression/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iis/configuration/system.webServer/httpCompression/index.md b/iis/configuration/system.webServer/httpCompression/index.md index 31c241f3c..e047cb01a 100644 --- a/iis/configuration/system.webServer/httpCompression/index.md +++ b/iis/configuration/system.webServer/httpCompression/index.md @@ -207,8 +207,8 @@ These attributes can only be configured at server level. Configuration at a site | Element | Description | | --- | --- | | [`scheme`](scheme.md) | Optional element.

Specifies the compression scheme (Gzip or Deflate) IIS uses to compress client requests. This element can only be configured at server level. | -| [`dynamicTypes`](dynamictypes/index.md) | Optional element.

Specifies configuration settings for dynamic compression. This element can be configured at site level. | -| [`staticTypes`](statictypes/index.md) | Optional element.

Specifies configuration settings for static compression. This element can be configured at site level. | +| [`dynamicTypes`](dynamictypes/index.md) | Optional element.

Specifies configuration settings for dynamic compression. For IIS 10.0 and later, can only be configured at the site level. Versions prior to IIS 10.0, can only be configured at the server level. | +| [`staticTypes`](statictypes/index.md) | Optional element.

Specifies configuration settings for static compression. For IIS 10.0 and later, can only be configured at the site level. Versions prior to IIS 10.0, can only be configured at the server level. | ### Configuration Sample From af79e341f1c7bb7e93106fefd41a045f92370861 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 2 Apr 2025 10:23:34 -1000 Subject: [PATCH 3/5] Apply suggestions from code review --- iis/configuration/system.webServer/httpCompression/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iis/configuration/system.webServer/httpCompression/index.md b/iis/configuration/system.webServer/httpCompression/index.md index e047cb01a..a50f66a0e 100644 --- a/iis/configuration/system.webServer/httpCompression/index.md +++ b/iis/configuration/system.webServer/httpCompression/index.md @@ -207,8 +207,8 @@ These attributes can only be configured at server level. Configuration at a site | Element | Description | | --- | --- | | [`scheme`](scheme.md) | Optional element.

Specifies the compression scheme (Gzip or Deflate) IIS uses to compress client requests. This element can only be configured at server level. | -| [`dynamicTypes`](dynamictypes/index.md) | Optional element.

Specifies configuration settings for dynamic compression. For IIS 10.0 and later, can only be configured at the site level. Versions prior to IIS 10.0, can only be configured at the server level. | -| [`staticTypes`](statictypes/index.md) | Optional element.

Specifies configuration settings for static compression. For IIS 10.0 and later, can only be configured at the site level. Versions prior to IIS 10.0, can only be configured at the server level. | +| [`dynamicTypes`](dynamictypes/index.md) | Optional element.

Specifies configuration settings for dynamic compression. For IIS versions prior to IIS 10.0, can only be configured at the server level. For IIS 10.0 and later, can also be configured at the site level. +| [`staticTypes`](statictypes/index.md) | Optional element.

Specifies configuration settings for static compression. For IIS 10.0 and later, can only be configured at the site level. For IIS versions prior to IIS 10.0, can only be configured at the server level. For IIS 10.0 and later, can also be configured at the site level.| ### Configuration Sample From 5fead6c29498a24d822ae0ee850411882613051e Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Wed, 2 Apr 2025 15:29:08 -0700 Subject: [PATCH 4/5] Update ms.date in httpCompression index.md --- iis/configuration/system.webServer/httpCompression/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iis/configuration/system.webServer/httpCompression/index.md b/iis/configuration/system.webServer/httpCompression/index.md index a50f66a0e..15e935b72 100644 --- a/iis/configuration/system.webServer/httpCompression/index.md +++ b/iis/configuration/system.webServer/httpCompression/index.md @@ -4,7 +4,7 @@ author: rick-anderson description: "Overview The <httpCompression> element specifies the HTTP compression settings for Internet Information Services (IIS) 7. HTTP compression can provide..." ms.author: iiscontent manager: soshir -ms.date: 09/26/2016 +ms.date: 04/02/2025 ms.topic: article ms.assetid: eaad56f4-c7f9-49f5-9d95-c62307238f8b ms.technology: iis-config From 57ea2ea4d4507b02e2a9ee0f4ca56f35ec25aa79 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Wed, 2 Apr 2025 15:32:34 -0700 Subject: [PATCH 5/5] Revert Update ms.date in httpCompression index.md --- iis/configuration/system.webServer/httpCompression/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iis/configuration/system.webServer/httpCompression/index.md b/iis/configuration/system.webServer/httpCompression/index.md index 15e935b72..a50f66a0e 100644 --- a/iis/configuration/system.webServer/httpCompression/index.md +++ b/iis/configuration/system.webServer/httpCompression/index.md @@ -4,7 +4,7 @@ author: rick-anderson description: "Overview The <httpCompression> element specifies the HTTP compression settings for Internet Information Services (IIS) 7. HTTP compression can provide..." ms.author: iiscontent manager: soshir -ms.date: 04/02/2025 +ms.date: 09/26/2016 ms.topic: article ms.assetid: eaad56f4-c7f9-49f5-9d95-c62307238f8b ms.technology: iis-config