Skip to content

Reload the page automatically when its hashed runtime is gone after a deploy #665

Open

Description

@JuroOravec

With content-hashed runtime URLs (#578, PR #652), a page can name a runtime hash that no server holds anymore. That happens during a rolling deploy, or when a tab opened before an upgrade is restored from history. The page then keeps its server HTML without Vue, logs a console.error, and the user's own refresh fixes it.

This issue tracks making the recovery automatic. A design was worked out in #652 and taken out of 0.9.0 to keep the scope small. In that design:

  • the start script reloads at most once per tab and runtime URL, never in a loop;
  • it reloads only after a HEAD request for the runtime URL answers 404;
  • it reloads only when the server knows the page answered a GET or HEAD request, because reloading a POST page submits the form again, and Chrome does that silently;
  • to know the method, each server integration records it per request, and Django under ASGI needs a middleware, because Django 5.0 and later send request signals from a separate task.

The questions to settle are whether to record the method automatically, or only when the app passes serialize(request_method=...), and whether the Django middleware is acceptable as a setup step.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    next-sprint
    on Nov 14, 2026
  2. added this to the 1.1.0 milestone on Nov 16, 2026
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

    enhancementnext-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions