The Statamic 3 beta has been out since the middle of November if I can remember correctly. V3 basically turns it into a package for Laravel rather than a pre-built Laravel app. This is the change which allows for Statamic add ons to finally become Laravel packages.
I’m gonna quickly give you a walk through of how you get started building an addon, including setting up the environment.
Read more →
So I recently created a service worker for one of my apps so I could turn it into a Progressive Web App.
Although, for some reason I was under the impression that I should cache the main page of my app. I later realised that it was a very bad idea.
I think I'm the only user of the site that came across this issue before I patched it but I found it quite a pain to unregister the service worker and bust it's cache so I could get the latest version of the page from the server.
I had to do this process on both my MacBook and on my Android phone, so here's both of those processes:
#Chrome on the MacBook
The first thing to do is to open up Developer Tools and head to the 'Application' tab. In there it has its own little sidebar. Go to the 'Service worker' part of that. There it should give you the option of 'Unregistering' your service worker. Click on that link and also go and clear the whole site's cache because why not.
#Chrome on the Android phone
The first thing to do is to go to the site, tap on the site's security padlock (or warning sign ⚠️) and tap on Site settings
. Then tap on Clear & reset
. Then just refresh the page and you should be good to go!