From 3c97f72c2c3980cb5b88c96c61f526c332373891 Mon Sep 17 00:00:00 2001 From: Angela Costa Date: Thu, 24 Oct 2024 16:30:44 +0100 Subject: [PATCH 1/5] Updates deprecation notice --- src/content/changelogs/api-deprecations.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/changelogs/api-deprecations.yaml b/src/content/changelogs/api-deprecations.yaml index a73cb0d5c7a8873..ea67841138e3f6b 100644 --- a/src/content/changelogs/api-deprecations.yaml +++ b/src/content/changelogs/api-deprecations.yaml @@ -216,7 +216,7 @@ entries: description: |- Deprecation date: August 15, 2024 - The Brotli setting and its API endpoints are deprecated. After the end of life date, Brotli compression will be enabled by default for all zones. + The Brotli setting and its API endpoints are deprecated. Brotli compression is now enabled for all non-Enterprise zones, and it will be extended to Enterprise zones in the coming year. Deprecated APIs: From 5f7bf2aa03269259000dab1bdff1833914edc8f5 Mon Sep 17 00:00:00 2001 From: Angela Costa Date: Fri, 25 Oct 2024 09:30:03 +0100 Subject: [PATCH 2/5] Changes after review. --- src/content/docs/rules/compression-rules/settings.mdx | 4 ++-- src/content/docs/speed/optimization/content/compression.mdx | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/content/docs/rules/compression-rules/settings.mdx b/src/content/docs/rules/compression-rules/settings.mdx index 0ea721d3a9c9ec9..ac52dd2215e5fdd 100644 --- a/src/content/docs/rules/compression-rules/settings.mdx +++ b/src/content/docs/rules/compression-rules/settings.mdx @@ -41,7 +41,7 @@ Allowed values are the following: If you specify only _Gzip_, _Brotli_, or _Zstandard_ and no algorithm matches, the response will have no compression. To configure a fallback compression mechanism, add _Auto_ to the list. :::note -The compression applied by the _Default_ option takes into account global configuration settings such as [Enable Brotli compression](/speed/optimization/content/compression/). +The compression applied by the _Default_ option takes into account any configured compression rules that match incoming requests. ::: --- @@ -76,7 +76,7 @@ If you include `none`, `default`, or `auto` in the list, it must be the last val When you specify only the `gzip`, `brotli`, or `zstd` algorithms, if no algorithm matches then the response will have no compression. To configure a fallback compression mechanism, add `auto` to the list. :::note -The compression applied by the `default` algorithm takes into account global configuration settings such as [Enable Brotli compression](/speed/optimization/content/compression/). +The compression applied by the `default` algorithm takes into account any configured compression rules that match incoming requests. ::: For API examples, refer to the [Examples gallery](/rules/compression-rules/examples/). diff --git a/src/content/docs/speed/optimization/content/compression.mdx b/src/content/docs/speed/optimization/content/compression.mdx index 857687f164658b2..092bbbf40e8343c 100644 --- a/src/content/docs/speed/optimization/content/compression.mdx +++ b/src/content/docs/speed/optimization/content/compression.mdx @@ -94,7 +94,6 @@ application/geo+json Cloudflare's global network can deliver content to website visitors using Gzip compression, Brotli compression, Zstandard compression, or no compression, depending on: - The values visitors provide in the `accept-encoding` request header. -- The value of the [Brotli setting](/speed/optimization/content/compression/) at the zone level. - Any configured [compression rule](/rules/compression-rules/) that matches incoming requests. For responses with error status codes, Cloudflare will only compress responses if their error status code is `403` or `404`. For successful response status codes, Cloudflare will only compress responses if their status code is `200`. Responses with other status codes will not be compressed. From 65046a7516d4c14ed15dce8cd4b2b5bdc7e5e0b9 Mon Sep 17 00:00:00 2001 From: angelampcosta <92738954+angelampcosta@users.noreply.github.com> Date: Fri, 25 Oct 2024 09:40:02 +0100 Subject: [PATCH 3/5] Update src/content/docs/speed/optimization/content/compression.mdx Co-authored-by: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> --- src/content/docs/speed/optimization/content/compression.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/docs/speed/optimization/content/compression.mdx b/src/content/docs/speed/optimization/content/compression.mdx index 092bbbf40e8343c..f9b6e847438a6c9 100644 --- a/src/content/docs/speed/optimization/content/compression.mdx +++ b/src/content/docs/speed/optimization/content/compression.mdx @@ -94,6 +94,7 @@ application/geo+json Cloudflare's global network can deliver content to website visitors using Gzip compression, Brotli compression, Zstandard compression, or no compression, depending on: - The values visitors provide in the `accept-encoding` request header. +- Your [Cloudflare plan](#between-visitors-and-cloudflare). - Any configured [compression rule](/rules/compression-rules/) that matches incoming requests. For responses with error status codes, Cloudflare will only compress responses if their error status code is `403` or `404`. For successful response status codes, Cloudflare will only compress responses if their status code is `200`. Responses with other status codes will not be compressed. From 586c4045be7e23ce8aebeab51b2da5cdfecc490b Mon Sep 17 00:00:00 2001 From: Angela Costa Date: Fri, 25 Oct 2024 10:00:55 +0100 Subject: [PATCH 4/5] Removes note. --- src/content/docs/rules/compression-rules/settings.mdx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/content/docs/rules/compression-rules/settings.mdx b/src/content/docs/rules/compression-rules/settings.mdx index ac52dd2215e5fdd..8f578637bb57de6 100644 --- a/src/content/docs/rules/compression-rules/settings.mdx +++ b/src/content/docs/rules/compression-rules/settings.mdx @@ -75,8 +75,4 @@ If you include `none`, `default`, or `auto` in the list, it must be the last val When you specify only the `gzip`, `brotli`, or `zstd` algorithms, if no algorithm matches then the response will have no compression. To configure a fallback compression mechanism, add `auto` to the list. -:::note -The compression applied by the `default` algorithm takes into account any configured compression rules that match incoming requests. -::: - For API examples, refer to the [Examples gallery](/rules/compression-rules/examples/). From 4c47b6fe15a99dc03d02923fc3881f5cbef17144 Mon Sep 17 00:00:00 2001 From: angelampcosta <92738954+angelampcosta@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:17:45 +0100 Subject: [PATCH 5/5] Update src/content/changelogs/api-deprecations.yaml --- src/content/changelogs/api-deprecations.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/changelogs/api-deprecations.yaml b/src/content/changelogs/api-deprecations.yaml index ea67841138e3f6b..d85d6fa4fd08f6a 100644 --- a/src/content/changelogs/api-deprecations.yaml +++ b/src/content/changelogs/api-deprecations.yaml @@ -216,7 +216,7 @@ entries: description: |- Deprecation date: August 15, 2024 - The Brotli setting and its API endpoints are deprecated. Brotli compression is now enabled for all non-Enterprise zones, and it will be extended to Enterprise zones in the coming year. + The Brotli setting and its API endpoints are deprecated. Brotli compression is available for all non-Enterprise zones, and it will be extended to Enterprise zones in the coming year. Deprecated APIs: