v1.2.15 — Fix: Clerk Proxy Domain & SW Reconnect Logic
Fixes the service worker's failure to recognize the Clerk proxy domain as an authenticated origin, and improves the WebSocket reconnection flow after going offline.
Tag
9 posts
Fixes the service worker's failure to recognize the Clerk proxy domain as an authenticated origin, and improves the WebSocket reconnection flow after going offline.
Precaches authentication route shells at service worker install time so that the sign-in and sign-up pages are available offline.
Serves all /notes/* routes from a shared app shell when the device is offline, enabling seamless navigation within the notes section without a network connection.
Replaces the Serwist-based service worker with a custom native service worker implementation for greater control over caching and offline behaviour.
Improves service worker caching strategy for React Server Component payloads and removes outdated caches on activation.
Fixes a bug where the service worker was incorrectly caching Clerk authentication API responses, causing stale auth state.
Excludes Cloudflare-specific configuration files from the service worker precache manifest to prevent caching conflicts.
Updates the Next.js build process to integrate Serwist for service worker generation, and removes duplicate build steps.
Adds a service worker and caching strategies to enable StashSync.app to function as a Progressive Web App, supporting installation and offline use.