Skip to main content
This script hashes a stable key (the client IP) into a 0-99 bucket and routes by percentage. The same key always lands in the same bucket, so a visitor stays on one origin across requests.
Adjust B_PERCENTAGE to change the split. To pin on something other than the client IP, such as a cookie or a header, hash that value instead.
Last modified on July 10, 2026