Skip to content

Recover stale storefront tabs after deployments - #62

Merged
SteveSimonson merged 3 commits into
mainfrom
codex/ibamboo-bfcache-recovery
Aug 2, 2026
Merged

Recover stale storefront tabs after deployments#62
SteveSimonson merged 3 commits into
mainfrom
codex/ibamboo-bfcache-recovery

Conversation

@SteveSimonson

@SteveSimonson SteveSimonson commented Aug 2, 2026

Copy link
Copy Markdown
Owner

What changed

  • detect when a page restored from the browser back/forward cache is running different hashed storefront assets
  • reload only when the current shell points to newer JavaScript or CSS, preserving scroll/form/React state when nothing changed

Why

Returning to an open iBamboo tab had exposed a pre-deploy layout and legacy fixed-size content balloons. The HTML shell already revalidates, but a bfcache snapshot can skip that request. This guard checks the current shell on future persisted restores and refreshes only after a deployment changed the storefront assets.

A tab that was already running an older bundle still needs one normal reload to receive this recovery code; the affected tab was cleanly reloaded during verification.

Validation

  • npm run lint
  • npm test (17 passing)
  • npm run build
  • GitHub Actions CI run #126 passed
  • Adversarial review: PASS

@SteveSimonson SteveSimonson changed the title Reload stale storefront pages restored from browser cache Recover stale storefront tabs after deployments Aug 2, 2026
@SteveSimonson
SteveSimonson merged commit 3ab3d7e into main Aug 2, 2026
1 check 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.

1 participant