cloudflare · Cloudflare Workers Docs
Workers A/B testing with same-URL direct access
Implementation of an A/B testing pattern using Cloudflare Workers that manages response variations via cookies and allows for origin-side testing and control.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers A/B testing with same-URL direct access
Implementation of an A/B testing pattern using Cloudflare Workers that manages response variations via cookies and allows for origin-side testing and control.
When To Use
Use when you need to implement cookie-based A/B testing that allows for manual control or origin-side testing instead of purely random assignment.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-ab-testing-a-b-with-same-url-direct-access-workflow-guide.md | A guide explaining how to implement A/B testing in Cloudflare Workers by serving different responses based on cookies while using the same URL. | Questions about a guide explaining how to implement A/B testing in Cloudflare Workers by serving different responses based on cookies... |
examples/workers-examples-ab-testing-a-b-with-same-url-direct-access-cloudflare-w.text | A Cloudflare Workers script demonstrating how to implement A/B testing while allowing direct access to control and test routes via passthrough. | Exact payloads, commands, or snippets shown in A Cloudflare Workers script demonstrating how to implement A/B testing while allowing direct access to control and te... |
examples/workers-examples-ab-testing-a-b-with-same-url-direct-access-cloudflare-w-2.text | A Cloudflare Workers script demonstrating how to implement A/B testing while allowing direct access to control and test routes via passthrough. | Exact payloads, commands, or snippets shown in A Cloudflare Workers script demonstrating how to implement A/B testing while allowing direct access to control and te... |
examples/workers-examples-ab-testing-a-b-with-same-url-direct-access-cloudflare-w-3.text | A Python implementation of a Cloudflare Worker that performs A/B testing by routing requests to different versions based on random selection. | Exact payloads, commands, or snippets shown in A Python implementation of a Cloudflare Worker that performs A/B testing by routing requests to different versions ba... |
examples/workers-examples-ab-testing-a-b-with-same-url-direct-access-cloudflare-w-4.text | A Hono application implementation for Cloudflare Workers that enables A/B testing while allowing direct passthrough access to control and test routes. | Exact payloads, commands, or snippets shown in A Hono application implementation for Cloudflare Workers that enables A/B testing while allowing direct passthrough a... |
What This Skill Covers
- A/B testing with same-URL direct access
- Main sections:
Tags.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/examples/ab-testing
