Skip to content

Commit bfc3ed3

Browse files
committed
sort by traffic
1 parent c46ae77 commit bfc3ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blocks/matcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const matcherBlock: Block<
152152
result ??= matcherFunc(ctx);
153153
} else {
154154
hasher.hash(uniqueId);
155-
const cookieName = `${DECO_MATCHER_PREFIX}${hasher.result()}`;
155+
const cookieName = `${DECO_MATCHER_PREFIX}${hasher.result()}_${($live as {traffic: number})?.traffic}`;
156156
hasher.reset();
157157
const isMatchFromCookie = cookieValue.boolean(
158158
getCookies(ctx.request.headers)[cookieName],

0 commit comments

Comments
 (0)