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

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.

主站蜘蛛池模板: 龙山县| 荃湾区| 成武县| 乐安县| 锡林郭勒盟| 卢湾区| 衡阳市| 额尔古纳市| 乐山市| 西丰县| 巴中市| 辽阳县| 文登市| 曲水县| 交城县| 光山县| 西昌市| 大厂| 三河市| 金塔县| 巴南区| 洪江市| 遵义县| 商城县| 平原县| 潍坊市| 胶南市| 穆棱市| 盖州市| 峨眉山市| 潜江市| 江西省| 阿尔山市| 丽江市| 章丘市| 丹凤县| 商洛市| 莱芜市| 西安市| 会昌县| 大竹县|