Weird issues with Workers and Custom Domains


I recently added Custom Domains to my two Workers, and everything seemed to go smooth.

I then noticed some strange behaviour. My Worker started appearing on multiple paths/directories of my domain, and I can easily reproduce this issue.

The steps to reproduce are:

  1. Close Chrome/Browser
  2. Open Chrome/Browser
  3. Go to and see the API response
  4. Go to,,, etc. (either on the same tab or a new tab), and see the same API response.

None of the URLs in step 4 should show a JSON response. The JSON response is what my Worker produces.

This is the Custom Domains setup for my Worker:

The Worker is accessible at that link.

This is the DNS setup for the domain:

And yet when I reproduce this issue, the logs from my Worker indeed show that the URL triggering it is not tied to my Worker’s Custom Domain:

I can also reproduce this on my other Worker:
Go to, then go to
This is the DNS for

Neither nor have any Page Rules.

This is the code running on the Worker with the Custom Domain “”: GitHub Repo

I would appreciate any help I could get. Thanks!
(Sorry, could only embed one image, and couldn’t have more than 4 links)

1 Like

I’ve pinged the PM and Engineer, they should give you some feedback.


Hi, is it possible to get an update on this? Still happening, unfortunately.

Hi Mozzy, thanks for the extensive report.

We are aware of the issue and have identified the root cause. We are working on a fix, but no ETA yet.

1 Like


Hello, an update from my side.
I can no longer reproduce this issue, at least not with the old steps, so I assume it was fixed.
Could you confirm if that’s indeed the case?

Hi Mozzy,
Sorry for taking long to reply. I can confirm we have taken steps to solve this issue, glad to hear you couldn’t reproduce anymore.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.