官术网_书友最值得收藏!

Should you polyfil response caching?

Request caching can also be polyfiled using IndexedDB. However, now that most browsers support service workers and caching, I don't think this approach has a wise use of resources. Outside of mobile use, Internet Explorer is the main browser without service worker support. At the time of writing this book, IE should really be used primarily in enterprises when their line of business applications have not been upgraded to modern standards.

This means a very small percentage of potential users that may open your PWA will do so in a browser without service worker support. When they do, it is pretty safe to say that they are most likely on a desktop of some sort with a reliable network connection.

Despite developing hundreds of applications using an early implementation of client-side asset caching, I have officially deprecated this approach from my recommendations.

主站蜘蛛池模板: 太湖县| 通江县| 汝阳县| 莱州市| 隆尧县| 栖霞市| 绍兴县| 龙胜| 永昌县| 秦皇岛市| 乌拉特中旗| 施秉县| 乌海市| 甘洛县| 商河县| 天津市| 类乌齐县| 株洲市| 突泉县| 乐山市| 大石桥市| 丹巴县| 历史| 云浮市| 海丰县| 大城县| 潜山县| 锦州市| 荆门市| 罗平县| 西乌珠穆沁旗| 弥勒县| 刚察县| 汾阳市| 南平市| 齐河县| 金乡县| 盐亭县| 武陟县| 广饶县| 湖州市|