fix: add cache-busting to service worker registration
CRITICAL FIX: Forces browsers to fetch new service worker - Add ?v=0.1.4 query parameter to service worker registration - Browsers will now immediately fetch updated SW file - Ensures Phase 2 content visible to ALL users immediately - Fixes persistent caching issue 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9838efb593
commit
06049bc2bf
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ class VersionManager {
|
||||||
|
|
||||||
async registerServiceWorker() {
|
async registerServiceWorker() {
|
||||||
try {
|
try {
|
||||||
const registration = await navigator.serviceWorker.register('/service-worker.js');
|
// Cache-bust service worker to force update: v0.1.4 Phase 2 launch
|
||||||
|
const registration = await navigator.serviceWorker.register('/service-worker.js?v=0.1.4');
|
||||||
this.serviceWorker = registration;
|
this.serviceWorker = registration;
|
||||||
console.log('[VersionManager] Service worker registered');
|
console.log('[VersionManager] Service worker registered');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue