Skip to content

Commit 7eed0d2

Browse files
committed
Update text
1 parent 3207a69 commit 7eed0d2

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,24 @@ there is no way to know what zone a resource is being cached in from a
4646
[Worker](https://developers.cloudflare.com/workers/).
4747

4848
To mitigate this problem, we can leverage the
49-
[CF-Worker](https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-worker) which gets added
50-
to outbound requests from a [Worker](https://developers.cloudflare.com/workers/). Unfortunately this header does not
51-
exist when using [Service Bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
52-
The only way to retrieve the header is by making a request to the [Worker](https://developers.cloudflare.com/workers/)
53-
on the provided [workers.dev subdomain](https://developers.cloudflare.com/workers/configuration/routing/workers-dev/).
54-
55-
The [Controller](./workers/controller/) exists primarily as an intermediary between [Watcher](./workers/watcher/) and [Handler](./workers/handler/) to collect zone information. It is **not** included as a part of [Handler](./workers/handler/) in order to ensure that the [Worker](https://developers.cloudflare.com/workers/) is collocated in the
49+
[CF-Worker](https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-worker) header which gets
50+
added to outbound requests from a [Worker](https://developers.cloudflare.com/workers/). Unfortunately, this header does
51+
not exist when using
52+
[Service Bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/). The only way to
53+
retrieve the header is by making a request to the [worker](https://developers.cloudflare.com/workers/) on the provided
54+
[workers.dev subdomain](https://developers.cloudflare.com/workers/configuration/routing/workers-dev/).
55+
56+
The [Controller](./workers/controller/) exists primarily as an intermediary between [Watcher](./workers/watcher/) and [Handler](./workers/handler/) to collect [zone](https://developers.cloudflare.com/fundamentals/setup/accounts-and-zones/#zones)
57+
information. It is **not** included as a part of [Handler](./workers/handler/) in order to ensure that the
58+
[worker](https://developers.cloudflare.com/workers/) is collocated in the
5659
[same data center](https://developers.cloudflare.com/workers/configuration/smart-placement/) as
5760
[Watcher](./workers/watcher/).
5861

59-
The worker also exposes a `/purge` endpoint that allows tags to be purged. This endpoint matches the
60-
[interface of the Cloudflare endpoint](https://developers.cloudflare.com/api/operations/zone-purge#purge-cached-content-by-tag-host-or-prefix), but only allows `tags`. Since no
61-
[zone](https://developers.cloudflare.com/fundamentals/setup/accounts-and-zones/#zones) information is provided, matching
62-
resources from **all** zones will be purged.
62+
The [worker](https://developers.cloudflare.com/workers/) also exposes a `/purge` endpoint that allows tags to be purged. This endpoint matches the
63+
[interface of the Cloudflare endpoint](https://developers.cloudflare.com/api/operations/zone-purge#purge-cached-content-by-tag-host-or-prefix), but only allows `tags`. If no
64+
[zone](https://developers.cloudflare.com/fundamentals/setup/accounts-and-zones/#zones) information is provided
65+
(via the [CF-Worker](https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-worker) header),
66+
matching resources from **all** zones will be purged.
6367

6468
#### [Handler](./workers/handler/)
6569

0 commit comments

Comments
 (0)