You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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
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
56
59
[same data center](https://developers.cloudflare.com/workers/configuration/smart-placement/) as
57
60
[Watcher](./workers/watcher/).
58
61
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.
0 commit comments