You can use [`AsyncLocalStorage`](https://developers.cloudflare.com/workers/runtime-apis/nodejs/asyn
Cloudflare Workers provides an implementation of a subset of the Node.js AsyncLocalStorage API for creating in-memory stores that remain coherent …

AsyncLocalStorageitty-durableitty-durable is not needed, it just makes the code way shorter).fetch on a Service Worker binding do anything with the cache-control header?
wrangler dev), that goes to Worker #2 in remote mode (wrangler dev --remote)?pages dev. Even if it is planned to add the functionality in future, right now the instruction is rather confusing than helpful.--remote flag with wrangler dev? I am not sure how it works with DO but that is the standard way for interacting with remote bindingsUse global variables to persist data between requests on individual nodes

itty-durableitty-durable.fetchcache-controlimport { createDurable } from "itty-durable";
export class Scheduler extends createDurable({ autoPersist: true }) {
constructor(state, env) {
super(state, env);
}
create(name, doEverySeconds = 30) {
this.name = name;
this.doEverySeconds = doEverySeconds;
this.setAlarm(Date.now());
}
async alarm() {
console.log(`Doing ${this.name}...`);
this.setAlarm(Date.now() + this.doEverySeconds * 1000);
// do the thing...
}
}