Mainly introduce two libaraies: sw-precache and sw-toolbox. Install: Types of caching Broadly, there are two types of caching Precaching—We'll precach ...
分类:
其他好文 时间:
2016-06-02 06:13:16
阅读次数:
263
Clone: Link Modify the structure: Move css, js, image, index.html to an 'app' folder. manifest.json: name: Showing on splash screen. short_name: Showi ...
分类:
移动开发 时间:
2016-05-27 02:04:43
阅读次数:
274
PWA: Add to home screen Angular Universal Server side rendering: for achieving better proference on init loading sw-precache: with webpack: sw-toolbox ...
分类:
移动开发 时间:
2016-05-27 02:04:31
阅读次数:
513
Link to CodeLab In this codelab, we'll retrace those steps but this time we'll use a tool called sw-precache to add offline functionality with only si ...
分类:
系统相关 时间:
2016-05-25 01:56:00
阅读次数:
314
Cache the avatars is little different from cache photos. We need to serve the page with our cache data and also go to the network for fetch avatars in ...
分类:
系统相关 时间:
2016-05-24 06:55:09
阅读次数:
169
sw-toolbox: Github It provides a cononical implementation of all the runtime caching strategies that you need for you dynamice content. sw-precache: G ...
分类:
移动开发 时间:
2016-05-23 22:31:15
阅读次数:
317
Mainly about Progressive web app: HTTPS Add to home screen Splash screen service worker notifications, bg sync offline notifications, bg sync Service ...
分类:
移动开发 时间:
2016-05-22 18:08:14
阅读次数:
215
We cannot let photo always keep caching new data without clean the old data. If message is not display on the page anymore, we want to clean it. And a ...
分类:
系统相关 时间:
2016-05-22 06:18:54
阅读次数:
163
To cache photo, You need to spreate cache db to save the photo. So in wittr example, we cache the text already, if there in the wittr there is photo, ...
分类:
系统相关 时间:
2016-05-22 06:18:21
阅读次数:
340
When we save items to IndexDB, we need to think about clean the items or keep those in a short list. ...
分类:
数据库 时间:
2016-05-21 23:20:17
阅读次数:
364