My Website Header
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?
If your Cloudflare Worker is working in the dashboard's debugger but not when you access your actual site, here are a few things we can check:
1.
Checking the Route configurationGo to Workers & Pages > your Worker.
Under the Triggers tab, check the Domains and Routes section.
Make sure your domain (e.g., https://example.com/*) is listed there.
If not, click Add Route, and specify the route and zone.
2.
Deployment and BindingMake sure the Worker is deployed to the correct Domain under Workers & Pages » Bindings
Check the Deployment History
3.
Cloudflare’s cache might be serving stale content:Try purging the cache for your domain. using the documentation here, purge everything or Purge by URL:
Purge CacheOr test with a query string (e.g., https://example.com/?test=1) to bypass cache.