Repository navigation
Building a marine map PWA with Vite and Cloudflare Workers #24073
Replies: 1 comment
|
Hii @rkaponm, This looks like an interesting implementation! I checked the Water Map, and the combination of Leaflet, marine data layers, and offline capabilities makes it a really useful PWA. A few things I would consider for handling stale assets in Vite-based PWAs:
One additional question: Have you considered using a version-based update notification with Overall, interesting use of Vite and Cloudflare Workers! If this answer solve your all doubts so can you please mark my answer as solved or if did not solved yet so please tell me your doubt |
Uh oh!
There was an error while loading. Please reload this page.
I help build Proven Waters, an installable fishing web app with a Leaflet map and server routes for regional marine data. We use Vinext and the Cloudflare Vite plugin, with separate RSC and SSR environments. An installed app can hold an older shell across a deployment. When the app returns to the foreground, it checks the Vite manifest ETag for a build change. A Vite preload error can also trigger a rate-limited reload.
I’d be interested in how other Vite PWA projects handle stale assets in installed clients.
Try the Water Map
All reactions