Skip to content

Commit f36126b

Browse files
remcoeissingRick-Andersonwadepickett
authored
Update to httpCompression attributes (#273)
* Update to httpCompression attributes * Update compression settings description for IIS versions * Apply suggestions from code review * Update ms.date in httpCompression index.md * Revert Update ms.date in httpCompression index.md --------- Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Co-authored-by: Wade Pickett <wpickett@microsoft.com>
1 parent 559c109 commit f36126b

File tree

1 file changed

+5
-3
lines changed
  • iis/configuration/system.webServer/httpCompression

1 file changed

+5
-3
lines changed

iis/configuration/system.webServer/httpCompression/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ HTTP compression is usually available on the default installation of IIS 7 and l
176176

177177
### Attributes
178178

179+
These attributes can only be configured at server level. Configuration at a site level or lower will be ignored.
180+
179181
| Attribute | Description |
180182
| --- | --- |
181183
| `cacheControlHeader` | Optional string attribute. <br><br>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. <br><br>The default value is `max-age=86400`. |
@@ -199,9 +201,9 @@ HTTP compression is usually available on the default installation of IIS 7 and l
199201

200202
| Element | Description |
201203
| --- | --- |
202-
| [`scheme`](scheme.md) | Optional element. <br><br>Specifies the compression scheme (Gzip or Deflate) IIS uses to compress client requests. |
203-
| [`dynamicTypes`](dynamictypes/index.md) | Optional element. <br><br>Specifies configuration settings for dynamic compression. |
204-
| [`staticTypes`](statictypes/index.md) | Optional element. <br><br>Specifies configuration settings for static compression. |
204+
| [`scheme`](scheme.md) | Optional element. <br><br>Specifies the compression scheme (Gzip or Deflate) IIS uses to compress client requests. This element can only be configured at server level. |
205+
| [`dynamicTypes`](dynamictypes/index.md) | Optional element. <br><br>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.
206+
| [`staticTypes`](statictypes/index.md) | Optional element. <br><br>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.|
205207

206208
### Configuration Sample
207209

0 commit comments

Comments
 (0)