I want to achieve changing url from /test.html to /rewrite.html but serving the same content
I want to achieve changing url from /test.html to /rewrite.html but serving the same content
read() without server response it got stuck? #TCP Sockets read() function got stuckBy default, Workers and Pages Functions are invoked in a data center closest to where the request was received. If you are running back-end logic in a Worker, it may be more performant to run that Worker closer to your back-end infrastructure rather than the end user. Smart Placement automatically places your workloads in an optimal location that minimizes latency and speeds up your applications.console.log the request.cf.colo field, then view it in live logs/wrangler tail?
Isolates are resilient and continuously available for the duration of a request, but in rare instances isolates may be evicted.Even if they connect to the same metal/machine I believe, they might connect to a different isolate
Because there is no guarantee that any two user requests will be routed to the same or a different instance of your Worker, Cloudflare recommends you do not use or mutate global state.quotes from: https://developers.cloudflare.com/workers/reference/how-workers-works/
const start = performance.now();Could you share the endpoints? Curious if I can repro
const response = await fetch("https://developers.cloudflare.com/");
const end = performance.now();
const timing = end - start; // duration of the subrequest to developers.cloudflare.com

By default, Workers and Pages Functions are invoked in a data center closest to where the request was received. If you are running back-end logic in a Worker, it may be more performant to run that Worker closer to your back-end infrastructure rather than the end user. Smart Placement automatically places your workloads in an optimal location that minimizes latency and speeds up your applications.