Open BillyCallahan opened 2 years ago
Following the recents svelte-kit updates,
timestamp
is no longer a member of$service-worker
. In fact, it was replaced byversion
and according to the documentation is "[...] useful for generating unique cache names inside your service worker, so that a later deployment of your app can invalidate old caches." What do you think about updating theservice-worker.ts
file ?
I just replaced timestamp
with version
as you suggested, and it worked!
BTW, there's a full implementation written in sveltekit docs here.
But then again, they recommend using using vite sveltekit pwa plugin, instead of sveltekit's implementation
Following the recents svelte-kit updates,
timestamp
is no longer a member of$service-worker
. In fact, it was replaced byversion
and according to the documentation is "[...] useful for generating unique cache names inside your service worker, so that a later deployment of your app can invalidate old caches." What do you think about updating theservice-worker.ts
file ?