Skip to content

fix(web): prevent stale dashboard bundles - #40

Merged
sppidy merged 1 commit into
mainfrom
codex/dashboard-cache-refresh
Aug 23, 2026
Merged

fix(web): prevent stale dashboard bundles#40
sppidy merged 1 commit into
mainfrom
codex/dashboard-cache-refresh

Conversation

@sppidy

@sppidy sppidy commented Aug 23, 2026

Copy link
Copy Markdown
Owner

What changed

  • render the dashboard routes dynamically
  • serve HTML with private, no-store cache semantics
  • keep hashed /_next/static assets cacheable

Why

Production was serving dashboard HTML with s-maxage=31536000, allowing old client bundles to survive a deployment. The old bundle kept attempting the retired WebSocket target, so live terminal controls never reached the server even though fresh-browser terminal traffic worked end-to-end.

Verification

  • npm run typecheck
  • npm run lint (0 errors; existing warnings)
  • npm run build
  • local production response: Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate
  • fresh production Chrome E2E before this cache patch: focused xterm, typed a marker, observed outgoing TerminalData, incoming TerminalData, and rendered marker output

Copilot AI lite review requested due to automatic review settings August 23, 2026 17:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sppidy
sppidy merged commit 51bff8c into main Aug 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants