diff --git a/website/matchers/random.ts b/website/matchers/random.ts index 354ab05cf..7ad666528 100644 --- a/website/matchers/random.ts +++ b/website/matchers/random.ts @@ -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