Back to Home

Question 3: Workers not applied

Customer Inquiry

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?



Response to Customer

Hello,

Thank you for contacting Cloudflare Support.

I understand you've created a Cloudflare Worker that is functioning correctly in the dashboard's debugger, but it's not running on your live site. That's a common situation, and it's usually caused by the Worker not being associated with a specific traffic route.

For a Worker to execute, you need to assign it to a "Route". A Route is a pattern that matches incoming requests and triggers the assigned Worker. Could you please check the "Routes" tab for your Worker in the Cloudflare dashboard to ensure you have a route configured for your website?

A common route pattern to cover an entire site would be *example.com/*. This will trigger the worker on all requests to example.com and its subdomains.

Please check your routes and let me know if that resolves the issue. If not, I'm here to help you investigate further.

Best regards,

João Estêvão
Customer Support Engineer
Cloudflare


Thought Process

  1. Identify the Core Problem:

  2. Provide a Direct Solution:

Tools I Would Use

Internal Cloudflare Dashboard:


cURL or Browser DevTools: