Stop caching index.html and speed up socket reconnect #7

Closed
matitos wants to merge 0 commits from fix/no-cache-html into main
pull from: fix/no-cache-html
Owner

Problem

On a phone (no easy hard-refresh) the dashboard kept showing reconnecting: the cached index.html kept loading the pre-fix bundle.

Fix

  • index.html and the SPA catch-all send Cache-Control: no-store; hashed /assets/* stay immutable.
  • First socket retry is 1s (was 2s).
  • The header now shows the socket close code, so a failure is actionable on a phone.

Testing

  • Frontend build + tests pass; backend 93 tests pass, ruff clean.
## Problem On a phone (no easy hard-refresh) the dashboard kept showing **reconnecting**: the cached `index.html` kept loading the pre-fix bundle. ## Fix - `index.html` and the SPA catch-all send `Cache-Control: no-store`; hashed `/assets/*` stay `immutable`. - First socket retry is 1s (was 2s). - The header now shows the socket close code, so a failure is actionable on a phone. ## Testing - Frontend build + tests pass; backend 93 tests pass, ruff clean.
matitos added 1 commit 2026-09-20 01:53:18 +02:00
Stop caching index.html and speed up socket reconnect
CI/CD / backend (pull_request) Successful in 5m41s
CI/CD / frontend (pull_request) Successful in 5m18s
CI/CD / build (pull_request) Skipped
CI/CD / deploy (pull_request) Skipped
CI/CD / cleanup (pull_request) Skipped
c63753e592
Phones offer no easy hard-refresh, so a cached index.html kept serving an old
bundle after a deploy (the live feed showed "reconnecting"). index.html and the
SPA catch-all now send Cache-Control: no-store, while hashed /assets stay
immutable. Also retry the first socket reconnect after 1s (was 2s) and surface
the close code in the header so a failure is actionable on a phone.
matitos closed this pull request 2026-09-20 02:10:21 +02:00
matitos deleted branch fix/no-cache-html 2026-09-20 02:10:21 +02:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: matitos/crypto_trading#7