gotcha Service Worker gotchas By osvaldas.info Published On :: Service Worker has already been here for a while: since 2015-09 it has been fully supported in Chrome/Opera and if compared to what we have today it has gone a promising way of improvements, bug fixes, became more easily debuggable and is supported much widely (hello Firefox). That led us into using the technology in production and implementing it in our kollegorna.se website, as well as some client projects. We’ve learned there quite a few gotchas to grasp in order to get Service Worker working correctly… Here is the list of what I overviewed in the article: Service Worker is a part of Progressive Web Apps What Service Worker is for Registering a Service Worker HTTPS and localhost Service Worker working scope ES6: to be or not to be? “Offline” page Service Worker lifecycle and events hierarchy Critical and non-critical resources Service Worker strategies Serving “offline” image Garbage in cache is your problem Service Worker and DOM Service Worker for multilingual website Service Worker is backend-dependent Debugging Service Worker Read the article Full Article