Support multi-version deploys or --old-asset-ttl for wrangler versions deploy
#13349
bmbferreira
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
We deploy Cloudflare Workers multiple times per day and are currently running into issues with asset invalidation during version rollouts.
When deploying new versions using
wrangler versions deploy, older static assets can become unavailable too quickly. This leads to situations where users with an already loaded application (SPA) experience broken states unless they refresh their browser.We would like a way to keep older versions (or at least their assets) available for a longer period to ensure smooth transitions between deployments.
Problem
Currently:
Given that we deploy frequently, this negatively impacts user experience.
Proposed Solutions
Option 1: Multi-version deploy with traffic allocation
Allow deploying multiple versions at once with explicit traffic weights, for example:
The main issue is that this is currently limited to 2 versions, we would like to have more versions available.
This would:
Option 2: Support
--old-asset-ttlforversions deployExtend
wrangler versions deployto support:This would:
Why this matters
References
Beta Was this translation helpful? Give feedback.
All reactions