Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions website/matchers/random.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export interface Props {
// once selected the session will reuse the same value
export const sticky = "session";

// Sticky-session matchers persist the result in a deco_matcher_* cookie, and
// CDNs are expected to include that cookie in the cache key — so per-variant
// responses get distinct cache entries and the page is safely cacheable.
export const cacheable = true;

/**
* @title Random
* @description Target a percentage of the total traffic to do an A/B test
Expand Down
Loading