Some pitfalls for using PWA and ServiceWorker I hoped I knew before - So I am writing them here so maybe others will get to rid them before or I can find them again when I'll need them again. This is not a tutorial for PWA, ServiceWorker. Those are just a few points that I encountered while developing a PWA ( Progressive Web App ) and ServiceWorker using Vanilla JavaScript and caching mechanism for Offline usage. There are plenty of good PWA ServiceWorker Caching tutorial on the internet. Full Vanilla JavaScript code is attached all the way at the bottom Double caches: First, the cache made by the cache mechanism which you as a coder decide what will be saved in this cache using the cache.addAll() command. And the second cache is the one the browser automatically caches for example images and javascripts code or others. Hence might be that when you work offline the browser will return cached images which you did not stated that should be cached only because the browser cac...
Points regarding computing that I always forget - so I write them here to find them easily and maybe other could benefit too.