Updating a service worker


#1

The shell script I use to deploy my site uses jekyll build to create a fresh copy before rsyncing it to its destination, Upon deploying a post yesterday, I found wildly different results based upon what browser I used. On my machine, Safari doesn’t support it, yet Chrome and Firefox do.

If I am rebuilding the site on each deploy, it it enough to run my task inside of the script but after the site regenerated? (Thus invalidating the cache and forcing the server to respond “network-first”)

As I am using Workbox, it occurs to me that there is probably a strategy which accommodates this, but I wondered if it was simply a matter of doing things in the correct order.