© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•17mo ago•
7 replies
nejc

Worker Environment

When request comes into the worker you have two objects (context and environment). Is environment scoped to the specific reqeust like context or is shared across the requests? Example if I set some unique value on environment, will it stay in that request or it can leak into other requests. Afaik context is scoped to the request and is not leaking (like global scope) across requests in the same worker, but I am not sure if the same is for environment
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom Hostname with Worker Environment
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
8mo ago
worker environment variables, please help :)
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
CF Worker not getting environment variables
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
4mo ago