Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-ab-testing-a-b-with-same-url-direct-access-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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