Skip to content

fix: retire the old Gatsby service worker - #264

Open
soloturn wants to merge 1 commit into
masterfrom
fix/retire-gatsby-service-worker
Open

soloturn wants to merge 1 commit into
masterfrom
fix/retire-gatsby-service-worker

Conversation

@soloturn

@soloturn soloturn commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

AI-assisted change proposal. Filed by agent driven by @soloturn via GDD.

Summary

  • Returning visitors still see the old Gatsby site after feat: migrate site from Gatsby to Astro, fix launcher downloads #263: the worker gatsby-plugin-offline installed answers from its cache, and /sw.js now 404s.
  • Adds public/sw.js, which skips waiting, deletes every cache, unregisters itself and reloads open tabs.
  • Remove the file after a few months.

Test plan

  • ESLint and Prettier pass
  • Firefox and Safari, locally: the new site loads with this change
  • Not tested: that a browser holding the old Gatsby worker drops it and shows the new site

… worker

Returning visitors still run the worker gatsby-plugin-offline installed and see the old site from its cache. /sw.js now 404s, which not every browser treats as an unregister. This one clears caches, unregisters and reloads open tabs.

Co-Authored-By: soloturn <soloturn@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Pre-merge checks: Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Description check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@soloturn

Copy link
Copy Markdown
Contributor Author

Not needed.

@soloturn soloturn closed this Nov 11, 2026
@soloturn soloturn reopened this Nov 11, 2026

This branch has not been deployed

No deployments
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