Behaviour notes
" class="sc-iJuXkV sc-cBNeAB iNuSsz jtfGmi">
Fetches the pinned Edge Optimize worker script and deploys it to the given Cloudflare
account. The worker name is derived server-side from the site's base URL
(edge-optimize-router-<canonical-host>, e.g. edge-optimize-router-example-com) and is
-not client-supplied. Sets the EDGE_OPTIMIZE_TARGET_HOST plain-text binding to
-targetHost, and sets the site's LLMO API key as the EDGE_OPTIMIZE_API_KEY secret.
+not client-supplied. The worker is tagged with
adobe-llmo plus the caller's identity, and
+the
EDGE_OPTIMIZE_TARGET_HOST plain-text binding is set to
targetHost, and the site's
+LLMO API key is set as the
EDGE_OPTIMIZE_API_KEY secret.
+
The deploy is idempotent: if a worker we previously deployed (carrying the adobe-llmo tag)
+already exists, the response is 200 with alreadyDeployed: true and the secret is not
+re-set. A worker with the same derived name that is not tagged by us is a foreign
+collision and returns 409.
If the worker is deployed but the secret cannot be set, the worker is live but
non-functional; the response is a 502 whose body carries partial: true so the
caller can re-deploy to complete setup.
@@ -9417,8 +9959,8 @@
Behaviour notes
" class="sc-iJuXkV sc-cBNeAB iNuSsz dyntKg">
Cloudflare account ID (32-character lowercase hex)