Prevent stale web shell caching #2

Open
loewy wants to merge 1 commits from loewy/fix-stale-web-shell-cache into master
Member

Prevent browsers from retaining an obsolete SPA shell across mobile-web
deployments.

  • Serve HTML fallback responses with Cache-Control: no-store.
  • Disable ETag generation and If-Modified-Since handling for HTML routes.
  • Preserve immutable caching for hashed JavaScript, CSS, and other static assets.

This prevents incorrect 304 responses from reusing HTML that references bundles
removed by a newer deployment.

> Prevent browsers from retaining an obsolete SPA shell across mobile-web > deployments. > > - Serve HTML fallback responses with Cache-Control: no-store. > - Disable ETag generation and If-Modified-Since handling for HTML routes. > - Preserve immutable caching for hashed JavaScript, CSS, and other static assets. > > This prevents incorrect 304 responses from reusing HTML that references bundles > removed by a newer deployment.
loewy added 1 commit 2026-07-16 00:03:51 +00:00
Author
Member

to deploy:

  1. Merge the static-yarn-nginx-container PR.

  2. In railbird-mobile, update container-utils in /Users/loewy/coding/railbird-
    mobile/flake.lock:27:

    direnv exec . nix flake lock --update-input container-utils

  3. Commit that lockfile change.

  4. Trigger the mobile web workflow. The force-web-upgrade branch builds, pushes, and
    deploys the new image automatically via /Users/loewy/coding/railbird-
    mobile/.gitea/workflows/web.yaml:1.

to deploy: 1. Merge the static-yarn-nginx-container PR. 2. In railbird-mobile, update container-utils in /Users/loewy/coding/railbird- mobile/flake.lock:27: direnv exec . nix flake lock --update-input container-utils 3. Commit that lockfile change. 4. Trigger the mobile web workflow. The force-web-upgrade branch builds, pushes, and deploys the new image automatically via /Users/loewy/coding/railbird- mobile/.gitea/workflows/web.yaml:1.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin loewy/fix-stale-web-shell-cache:loewy/fix-stale-web-shell-cache
git checkout loewy/fix-stale-web-shell-cache
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: railbird/static-yarn-nginx-container#2
No description provided.