Question 3 of 6

Workers not applied

Customer ticket

Subject: Workers not applied

I've just added a Worker on the Cloudflare Dashboard for my website: it works in the debugger but doesn't work when I query the site. Why is that? Is there anything to activate or anything I could check?

2. Thought process

“Works in the preview but not on the site” almost always means the code is fine and the routing isn’t. The dashboard preview (Quick Editor, which uses wrangler dev --remote behind the scenes) runs the script directly, without route matching or DNS. So I focused on the path a real request takes:

  1. DNS: is the record present and proxied, so the request reaches Cloudflare at all?
  2. Zone: is the route defined on the zone that actually serves the hostname?
  3. Route: does the pattern match host, path and scheme, and is there a more specific route with no Worker?
  4. Deployment: is the version that was tested actually deployed?
  5. Limits: a Free plan Worker that fails open once over quota looks like “not applied”.
  6. Client: browser caching hides changes. Workers run before the CDN cache, so edge cache isn’t the cause.

Since I have access to their settings, in practice I would check the route list and DNS proxy status first, then tell them exactly which item was wrong. I wrote the email as a checklist so the customer can verify it themselves and learn the routing model. I also gave them wrangler tail so they can see for themselves whether requests reach the Worker, which separates routing problems from code problems.

3. Tools I would use, and why

ToolWhy
Dashboard: Workers & Pages > Settings > Domains & RoutesConfirm a route or custom domain exists, is on the right zone and has the right pattern.
Dashboard: Deployments / VersionsCheck that the tested version is deployed and receiving 100% of traffic.
Dashboard: DNS > RecordsConfirm the hostname has a proxied (orange-cloud) record, which routes require.
npx wrangler tail / Workers Logs (Live)Live view of invocations. No events at all means the request isn’t routed; exceptions point to a code problem.
curl -svo /dev/null https://example.com/pathRepeatable test that bypasses browser cache and shows any headers the Worker sets.
Workers Metrics (requests, errors, invocation statuses)Shows whether the Worker gets traffic, and spots Free plan limit or exceeded-CPU problems.
wrangler.jsonc / wrangler.toml reviewIf deployed with Wrangler, check that routes and zone_name are set and weren’t overwritten by a later deploy.