Scoobyben
Scoobyben
CDCloudflare Developers
Created by Scoobyben on 10/23/2024 in #workers-help
Keen to understand the routing of a request invoked by a worker
13 replies
CDCloudflare Developers
Created by Scoobyben on 10/23/2024 in #workers-help
Keen to understand the routing of a request invoked by a worker
to conform the other assumption in my understanding: just one worker, based on the most specific matching path (?) Is this correct? It feels like what's happening, but I don't think I've read it explicitly anywhere
13 replies
CDCloudflare Developers
Created by Scoobyben on 10/23/2024 in #workers-help
Keen to understand the routing of a request invoked by a worker
Id say try it and see
I've tried it, and while I haven't confirmed that the double path is happening, I'm seeing responses from AWS that are consistent with that occurring
13 replies
CDCloudflare Developers
Created by Scoobyben on 10/23/2024 in #workers-help
Keen to understand the routing of a request invoked by a worker
In the last step of your original message, it starts the chain again but skipping the last step and then following the CNAME to your origin
ah, but in the original chain for my request I have a transform rule appending /updated-path to the path. So running through the rules a second time makes it /updated-path/updated-path
13 replies
CDCloudflare Developers
Created by Scoobyben on 10/23/2024 in #workers-help
Keen to understand the routing of a request invoked by a worker
in terms of my actual next steps I've resigned myself to specifying the origin directly in the worker, which I don't especially like (as we're now configuring the origin twice, once in the DNS record and once in the worker) - but I like it more than undoing the transform rule in the worker to allow it to run through the rules again!
13 replies
CDCloudflare Developers
Created by Scoobyben on 10/23/2024 in #workers-help
Keen to understand the routing of a request invoked by a worker
nice - that matches my experimental evidence 😄 Do you know if that's documented somewhere I've missed?
13 replies
CDCloudflare Developers
Created by Scoobyben on 10/23/2024 in #workers-help
Keen to understand the routing of a request invoked by a worker
sounds cool! But I cannot see it as an option (I'm working on a client's Cloudflare account, so I suspect it's just not enabled)
13 replies