Skip to content

Redeploy removes prior asset bundles, breaking open sessions #68

Description

Problem statement

Each deploy emits new content-hashed bundles and the previous ones stop being served. A browser tab that was open before the deploy will request a chunk that no longer exists and fail, with no built-in recovery.

Evidence. Cache headers are correct, so this is not a caching bug. See Checked and found working. The failure mode is asset lifetime, not cache policy. We did not manage to reproduce the blank page during this round of work, so this needs a clean repro before filing.

Impact. In an app deployed during working hours, users with an open tab hit a broken lazy load until they reload.

Proposed solution

Retain the previous deployment's assets for a grace period. Separately, document a client-side chunk-load-error handler that triggers a reload, since that pattern is needed regardless.

Alternatives considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions