const forceRefresh = async () => { try { var registrations = (await navigator.serviceWorker.getRegistrations()) ?? []; for (const registration of registrations) { registration.unregister(); } } finally { window.location.reload(true); } };
435100cookie-checkPWA Service worker force refresh