Workers Cron Trigger: how know which colo the script executes?

With the FetchEvent, there are [IncomingRequestCfProperties]( available to know interesting things about the incoming request. One is the colo: The three-letter airport code of the data center that the request hit.

Is there any way to know, from inside the Worker script, at which colo the Cron Triggered script executed?

It has a workaround:

const req = await fetch("");
const colo = req.headers.get("cf-ray").split('-')[1];
1 Like

Ha! Love this little workaround … didn’t think of it

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