The dashboard server cached index.html and the Vite view-chunk manifest forever with no invalidation. When the on-disk files changed (release upgrade, rebuild) the server kept serving stale HTML referencing chunk hashes that no longer existed, leaving the browser stuck on a blank white page until the server was restarted. Both caches now key on file mtime and refresh automatically. The serveIndexHtml catch path also logs the failure and clears the templated cache so the next request can recover instead of silently 404ing until restart. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
605 B
605 B
@fusion/dashboard
| @fusion/dashboard |
|---|
| patch |
Fix dashboard occasionally serving a blank/broken page until the server is restarted. The server cached index.html and the Vite view-chunk manifest forever with no invalidation, so any on-disk change (release upgrade, rebuild) left the server handing out stale HTML referencing chunk hashes that no longer existed. Both caches now invalidate automatically when the underlying file's mtime changes. The serveIndexHtml catch path also now logs the failure and clears the templated cache so a subsequent request can recover, instead of silently returning 404 forever.