随笔分类 - PWA
Progressive web app
摘要:Previously we saw how to Hijacking all the reqest, but this is not useful. So now we want to see how to Hijacking one kind of request. For example we
阅读全文
摘要:We want to do offline first, the first thing we need to do is we should able to catch the browser request and return our cache data from serice worker
阅读全文
摘要:You can debug with chrom dev tool: 1. Use console to debug service worker: Swith to sw.js context then you can access 'self' object 2. Set breakpoint:
阅读全文
摘要:The No1. is because, service worker only take control after it is loaded. But the first time we go to the page, service worker actually is not there,
阅读全文
摘要:Service worker stays between our browser and noetwork requests. It can help to fetch data from cache and cache the data from Internet. To get our serv
阅读全文
摘要:Why offline first? Imagin you are visiting a website, it is fine if wifi connection is good. It might be also "fine" if show you "Your don't have inte
阅读全文