Skip to content

Commit 0d74057

Browse files
authored
Apply suggestions from PCX review
1 parent 28562fc commit 0d74057

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/content/changelog/rules/2025-06-09-custom-errors-fetch-4xx-5xx-assets.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ date: 2025-06-09T18:00:00Z
99
[Custom Errors](/rules/custom-errors/) can now fetch and store [assets](/rules/custom-errors/create-rules/#create-a-custom-error-asset-dashboard) and [error pages](/rules/custom-errors/#error-pages) from your origin even if they are served with a 4xx or 5xx HTTP status code — previously, only 200 OK responses were allowed.
1010

1111
**What’s new:**
12-
- You can now upload error pages and error assets that return error status codes (e.g. 403, 500, 502, 503, 504) when fetched
13-
- These assets are stored and minified at the edge, so they can be reused across multiple Custom Error rules without triggering requests to the origin
12+
- You can now upload error pages and error assets that return error status codes (for example, 403, 500, 502, 503, 504) when fetched.
13+
- These assets are stored and minified at the edge, so they can be reused across multiple Custom Error rules without triggering requests to the origin.
1414

1515
This is especially useful for retrieving error content or downtime banners from your backend when you can’t override the origin status code.
1616

src/content/changelog/rules/2025-06-09-transform-rule-subrequest-matching.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2025-06-09T17:00:00Z
88

99
import { Example } from "~/components";
1010

11-
You can now use the [cf.worker.upstream_zone](/ruleset-engine/rules-language/fields/reference/cf.worker.upstream_zone/) field in [Transform Rules](/rules/transform/) to control rule execution based on whether a request originates from [Workers](/workers/), including subrequests issued by Workers in other zones.
11+
You can now use the [`cf.worker.upstream_zone`](/ruleset-engine/rules-language/fields/reference/cf.worker.upstream_zone/) field in [Transform Rules](/rules/transform/) to control rule execution based on whether a request originates from [Workers](/workers/), including subrequests issued by Workers in other zones.
1212

1313
![Match Workers subrequests by upstream zone in Transform Rules](~/assets/images/changelog/rules/transform-rule-subrequest-matching.png)
1414

@@ -20,10 +20,10 @@ For example, to add a header when the subrequest comes from another zone:
2020

2121
<Example>
2222

23-
Text in **Expression Editor** *(replace `myzone.com` with your domain)*:
23+
Text in **Expression Editor** (replace `myappexample.com` with your domain):
2424

2525
```txt
26-
(cf.worker.upstream_zone != "" and cf.worker.upstream_zone != "myzone.com")
26+
(cf.worker.upstream_zone != "" and cf.worker.upstream_zone != "myappexample.com")
2727
```
2828

2929
Selected operation under **Modify request header**: _Set static_

src/content/docs/rules/custom-errors/troubleshooting.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar:
88

99
## Cannot preview error page
1010

11-
If Cloudflare cannot load your site or you have blocked the United States (US) via [IP Access rules](/waf/tools/ip-access-rules/) or WAF custom rules, publishing and previewing custom error page might not work.
11+
If Cloudflare cannot load your site or you have blocked the United States (US) via [IP Access rules](/waf/tools/ip-access-rules/) or WAF custom rules, publishing and previewing a custom error page might not work.
1212

1313
A common error might look like the following: `Error fetching page: Fetch failed, https://example.com/ipcountryblock.html returned 403 (Code: 1202)`.
1414

@@ -18,9 +18,9 @@ Make sure that no WAF rule is blocking or challenging Custom Errors product when
1818

1919
If you block countries or IP addresses with an [IP Access rule](/waf/tools/ip-access-rules/), affected visitors will get a `1005` error and your **IP/Country Block** custom page.
2020

21-
If you block countries or IP addresses with a [WAF custom rule](/waf/custom-rules/) and you do not configure a [Custom Error rule](/rules/custom-errors/create-rules/#create-a-custom-error-rule-dashboard) or a [WAF custom response](/waf/custom-rules/create-dashboard/#configure-a-custom-response-for-blocked-requests) for blocked requests, affected visitors will get your **WAF Block** page.
21+
If you block countries or IP addresses with a [WAF custom rule](/waf/custom-rules/) and you do not configure a [custom error rule](/rules/custom-errors/create-rules/#create-a-custom-error-rule-dashboard) or a [WAF custom response](/waf/custom-rules/create-dashboard/#configure-a-custom-response-for-blocked-requests) for blocked requests, affected visitors will get your **WAF Block** page.
2222

23-
If you block requests due to a [rate limiting rule](/waf/rate-limiting-rules/) and you do not configure a [Custom Error rule](/rules/custom-errors/create-rules/#create-a-custom-error-rule-dashboard) or a [WAF custom response](/waf/rate-limiting-rules/create-zone-dashboard/#configure-a-custom-response-for-blocked-requests) for blocked requests, affected visitors will get your **429 Errors** page displaying a Cloudflare `1015` error.
23+
If you block requests due to a [rate limiting rule](/waf/rate-limiting-rules/) and you do not configure a [custom error rule](/rules/custom-errors/create-rules/#create-a-custom-error-rule-dashboard) or a [WAF custom response](/waf/rate-limiting-rules/create-zone-dashboard/#configure-a-custom-response-for-blocked-requests) for blocked requests, affected visitors will get your **429 Errors** page displaying a Cloudflare `1015` error.
2424

2525
If you block countries or IP addresses with a firewall rule (now deprecated), affected visitors will get your **1000 Class Errors** page.
2626

0 commit comments

Comments
 (0)