Header Image

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 configuration

Go 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 Binding

Make 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 Cache

Or test with a query string (e.g., https://example.com/?test=1) to bypass cache.

4.

Check and enable Workers logs to see if there are any runtime errors when the worker is triggered live. Workers Logs