Skip to content

Commit 2342906

Browse files
authored
[Workers] Make reference to 530/1016 clearer (#24368)
1 parent a8052f0 commit 2342906

File tree

2 files changed

+8
-6
lines changed
  • src/content/docs

2 files changed

+8
-6
lines changed

src/content/docs/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1016.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Cloudflare returns a `1016` error when the [custom hostname](/cloudflare-for-pla
3232

3333
### Common cause
3434

35-
- Custom hostname ownership validation is not complete.
36-
- Fallback origin is not [correctly set](/cloudflare-for-platforms/cloudflare-for-saas/start/getting-started/#1-create-fallback-origin).
37-
- A wildcard custom hostname has been created, but the requested hostname is associated with a domain that exists in Cloudflare as a standalone zone.
35+
- Custom hostname ownership validation is not complete.
36+
- Fallback origin is not [correctly set](/cloudflare-for-platforms/cloudflare-for-saas/start/getting-started/#1-create-fallback-origin).
37+
- A wildcard custom hostname has been created, but the requested hostname is associated with a domain that exists in Cloudflare as a standalone zone.
3838
- There is no DNS record for the hostname in the Cloudflare for SaaS target zone.
3939

4040
### Resolution
@@ -44,4 +44,6 @@ Cloudflare returns a `1016` error when the [custom hostname](/cloudflare-for-pla
4444
3. The [hostname priority](/ssl/reference/certificate-and-hostname-priority/#hostname-priority) for the standalone zone will take precedence over the wildcard custom hostname. This behavior applies even if there is no DNS record for this standalone zone hostname. Use a specific hostname instead of a wildcard or [remove the standalone zone from Cloudflare](/fundamentals/manage-domains/remove-domain/).
4545
4. Make sure that each hostname that needs to be served by the Cloudflare for SaaS parent zone has been added as an individual custom hostname and has the status `active`.
4646

47+
## Workers
4748

49+
If you encounter this error with a Worker, you might be using the [Fetch API in a partial zone setup](/workers/platform/known-issues/#fetch-api-in-cname-setup).

src/content/docs/workers/runtime-apis/fetch.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ async def on_scheduled(controller, env, ctx):
7272
</TabItem></Tabs>
7373

7474
- <code>fetch(resource, options optional)</code> : Promise`<Response>`
75-
7675
- Fetch returns a promise to a Response.
7776

7877
### Parameters
@@ -85,8 +84,8 @@ async def on_scheduled(controller, env, ctx):
8584
Any other `cache` header will result in a `TypeError` with the message `Unsupported cache mode: <attempted-cache-mode>`.
8685
_ For all requests this forwards the `Pragma: no-cache` and `Cache-Control: no-cache` headers to the origin.
8786
_ For `no-store`, requests to origins not hosted by Cloudflare bypass the use of Cloudflare's caches.
88-
_ For `no-cache`, requests to origins not hosted by Cloudflare are forced to revalidate with
89-
the origin before resonding.
87+
\_ For `no-cache`, requests to origins not hosted by Cloudflare are forced to revalidate with
88+
the origin before resonding.
9089
- An object that defines the content and behavior of the request.
9190

9291
---
@@ -136,3 +135,4 @@ export default {
136135
- [Example: cache using Fetch](/workers/examples/cache-using-fetch/)
137136
- Write your Worker code in [ES modules syntax](/workers/reference/migrate-to-module-workers/) for an optimized experience.
138137
- [Error 526](/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-526/#error-526-in-the-workers-context)
138+
- [Fetch API in a partial setup](/workers/platform/known-issues/#fetch-api-in-cname-setup)

0 commit comments

Comments
 (0)