You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reload the page automatically when its hashed runtime is gone after a deploy #665
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.
Activity
refactor: report a missing runtime in the console instead of reloading (
feat: serve the browser runtimes from content-hashed URLs (#578) (#652)