Source
Snippet performance & flicker — found from sitemap — GrowthBook
Checked for GrowthBook on 1 Oct 2026
- Page
- https://docs.growthbook.io/lib/edge/cloudflare
- Checked
- 1 Oct 2026, 10:34 UTC
- How we may use it
- Public page, crawling permitted
Technical details
- type
- page
- http status
- 200
- content hash
- sha256:33fcfc23dc27f5d0a408513fb95767c7cb0db73bc78454da9e0eec06c25dc129
- permission
- robots_ok
- screenshot
- Screenshot on file (internal exhibit, not published)
Cited by
Facts read from this source
-
Edge cloudflare purpose Report an error
“Evaluate GrowthBook feature flags and Visual Editor experiments at the edge on Cloudflare Workers to cut flicker before HTML ships.”
-
Edge app levels Report an error
“GrowthBook currently supports two levels of integration with most edge workers, including Cloudflare:”
-
Edge app capabilities Report an error
“Automatically run server-side or hybrid Visual Experiments without redraw flicker.”
-
Sdk package version Report an error
“Cloudflare Workers App & SDK Resources v0.2.9 edge-cloudflare npm”
-
Kv store sync Report an error
“our Cloudflare integration makes it easy to synchronize feature and experiment values between GrowthBook and Cloudflare’s KV store. This eliminates the network request to the GrowthBook API”
-
Edge URL redirect default Report an error
“The Edge App defaults to running URL Redirect Experiments in the browser only. This is because edge redirects load a separate page’s content without altering the URL.”
-
Edge URL redirect env Report an error
“You can enable URL Redirects on edge by setting environment variable RUN_URL_REDIRECT_EXPERIMENTS to “edge” or “everywhere”.”
-
Edge cross origin env Report an error
“Additionally if your redirect is cross-domain (e.g. redirection from “public.mysite.io” to “newsite.io”), you must also set RUN_CROSS_ORIGIN_URL_REDIRECT_EXPERIMENTS.”
-
Edge proxy behavior Report an error
“In absence of Visual or URL Redirect experiments, the Edge App will simply proxy the user request to your site and return the response, optionally injecting a fully-bootstrapped JavaScript SDK onto the rendered HTML page.”
-
Edge required env vars Report an error
“PROXY_TARGET="https://internal.mysite.io" # The non-edge URL to your website GROWTHBOOK_API_HOST="https://cdn.growthbook.io" GROWTHBOOK_CLIENT_KEY="sdk-abc123" GROWTHBOOK_DECRYPTION_KEY="key_abc123" # Only include for encrypted SDK Connections”
-
Edge visual experiments default Report an error
“RUN_VISUAL_EDITOR_EXPERIMENTS="everywhere"|"edge"|"browser"|"skip" # default: "everywhere"”
-
Edge optional env vars Report an error
“DISABLE_INJECTIONS="true" # default "false"”
-
Edge streaming env Report an error
“ENABLE_STREAMING="true" # default "false". Streaming SSE updates on browser.”
-
Edge sticky bucketing env Report an error
“ENABLE_STICKY_BUCKETING="true" # default "false". Use cookie-based sticky bucketing on edge and browser.”
-
Edge tracking default Report an error
“Our turnkey Edge App defaults to using built-in front-end tracking. The tracking call automatically integrates with Segment.io, GA4, and Google Tag Manager”
-
Edge tracking callback env Report an error
“To change the front-end tracking callback, set the GROWTHBOOK_TRACKING_CALLBACK to your custom tracking JS code”
-
Edge auto attributes Report an error
“The following targeting attributes are set automatically by the Edge App.”
-
Edge uuid cookie Report an error
“id - a long-lived user identifier, stored in a gbuuid cookie”
-
Edge uuid env vars Report an error
“You can customize both the primary identifier name (id) and cookie name (gbuuid) by setting the UUID_KEY and UUID_COOKIE_NAME environment variables respectively.”
-
Edge skip auto attributes Report an error
“You can also skip automatic attribute generation and rely solely on custom attributes by setting the environment variable SKIP_AUTO_ATTRIBUTES="true".”
-
Edge routing default Report an error
“By default, the Edge App will process all GET requests (other HTTP verbs are proxied through without running through our app logic).”
-
Edge routes env Report an error
“You will need to include a JSON encoded string of route rules in your ROUTES environment variable.”
-
Edge route interface Report an error
“behavior?: "intercept" | "proxy" | "error"; // default: "intercept"”
-
GDPR cookie consent Report an error
“If you must delay persisting the gbuuid cookie until a user consents, you can set the environment variable NO_AUTO_COOKIES="true".”
-
Edge persist uuid Report an error
“set the environment variable PERSIST_UUID="true" (via [vars] in your wrangler.toml). The Edge App will then include a Set-Cookie: gbuuid=... header on its response”
-
Edge sticky bucketing consent Report an error
“Or only enable Sticky Bucketing per each user via runtime configuration. (only pass config.enableStickyBucketing: true if user has consented — identifiable by checking for presence of the gbuuid cookie).”
-
Edge lifecycle hooks Report an error
“onRequest - Fired on initial user request. Can exit early based on requested URL.”
-
Edge dom parse env Report an error
“The text body as well as the optional parsed virtual DOM root (disabled by default, use ALWAYS_PARSE_DOM to enable)”
-
Manual sdk package Report an error
“To use the GrowthBook on edge, simply include our standard JavaScript SDK (@growthbook/growthbook NPM package).”
-
Kv utility functions Report an error
“In our @growthbook/edge-cloudflare NPM package, we export a few Cloudflare-specific utility functions to simplify SDK payload caching”
-
Kv caching strategies Report an error
“You can either completely eliminate the blocking call to the GrowthBook API by implementing a GrowthBook-to-Cloudflare-KV push model via SDK Webhooks.”
-
Kv namespaces Report an error
“KV stored payloads: KV_GB_PAYLOAD KV payload cache: KV_GB_CACHE”
-
Sdk webhook type Report an error
“Select Cloudflare KV as the Webhook Type and fill out the following fields: Account ID Namespace ID Key API Token”
-
Sdk webhook config Report an error
“Method is being set to PUT An Authorization Header is being added with your API Token The Payload format is being set to SDK Payload only”
-
Edge supported features Report an error
“Features Experimentation Case Insensitive Regex Case Insensitive Membership Saved Group References Encrypted Features Streaming v2 Hashing Visual Editor SemVer Targeting Visual Editor (JS) Visual Editor Drag & Drop Prerequisites URL Redirects Sticky Bucketing”
Scores citing this record
- The CRO Consultant Experiment types & delivery
- The CRO Consultant Consent & visitor tracking
- The CRO Consultant Snippet performance & flicker
- The Data Protection Officer Experiment types & delivery
- The Data Protection Officer Consent & visitor tracking
- The Data Protection Officer Snippet performance & flicker
- The E-Commerce Manager Experiment types & delivery
- The E-Commerce Manager Consent & visitor tracking
- The E-Commerce Manager Snippet performance & flicker
- The Growth Lead Experiment types & delivery
- The Growth Lead Consent & visitor tracking
- The Growth Lead Snippet performance & flicker
- The Product Engineer Experiment types & delivery
- The Product Engineer Consent & visitor tracking
- The Product Engineer Snippet performance & flicker
- The Skeptic Experiment types & delivery
- The Skeptic Consent & visitor tracking
- The Skeptic Snippet performance & flicker