In my worker I measure the time it takes to fetch resources:
const reqStartTime = Date.now(); let response = await Promise.race([blobFetch1, blobFetch2]); let reqTiming = Date.now() - reqStartTime;
I collect those timings in Google Analytics with the Cloudflare data centre as the label. That gave me this data:
The average (!) fetch time for the SJC and LAX data centres is more than 220 ms.
What’s worse, my Azure storage location for those requests is in San Francisco, which is only 80km away from SJC.
Why are those fetch time so poor even with the storage location nearby? And what can I do about it?
Thanks for any insights!
I use Workers Bundled in case that’s relevant.