env object to change without restarting the isolate instance (see https://developers.cloudflare.com/workers/runtime-apis/bindings/#making-changes-to-bindings).env object (equal by reference) should last between requests as long as the configuration is unchanged (and of course so long as the isolate instance remains I assume, see https://developers.cloudflare.com/workers/runtime-apis/handlers/fetch/#parameters).env object, rather than globalThis: whenever the config changes, that state will be clobbered as it should, but will otherwise live on between requests same as globalThis.set-cookie, then the cookie will be setHTMLRewriter gets around this by streaming the body through, and never storing the entire thing in memory
workers_dev = false to your wrangler.toml file
JSON.stringify data when you pass it aroundRequest/Response aroundglobalThisglobalThis