Skew protection
A page loaded before a deploy keeps talking to the deployment that served it, so its scripts, data requests and server actions don’t break.
What it does
When you deploy while someone has your site open, their page still has the old deployment’s script names and data shapes. With skew protection, every request that names a deployment (?dpl=<id>, the x-deployment-id header or the __vdpl cookie) is served by that deployment while it’s younger than the maximum age (12 hours by default) and still kept.
Your framework does the naming. SvelteKit, Nuxt, TanStack Start, Qwik and React Router set the cookie; Next.js 14.1.4 and later and Astro put the id on their requests. Remix does neither, on Vercel either.
Turn it on or off
It’s on by default for new projects, from their first successful build, and costs nothing. Change it under Settings → Advanced → Skew Protection, or:
forkrail project my-site --skew-protection on # or off; applies at onceforkrail project my-site --skew-max-age 7d # 30m, 12h, 7d...; 'default' is 12 hoursforkrail project my-site --skew-threshold a1b2c3d4 # this deployment and older are never pinned againforkrail project my-site --skew-allowed-domains app.example.com # other sites whose pages may pinUse a threshold after a deploy that fixes a security problem: no open page can reach the older deployments again.
What’s never pinned
- A page load or refresh: those always get the newest deployment.
- A request from another site, unless it’s one of the allowed domains (up to 12).
- A deployment older than the maximum age, older than the threshold, deleted, or from another project.
- A preview on a production address, so production names never serve preview code.
Search crawlers from Google and Bing (checked by their published addresses) can reach deployments up to 60 days old, so pages they indexed keep loading. The request log’s skew field says what happened to each request that named a deployment.