We want to use IDB to store the wittr messages. The logic is when the page start: In openDatabase(), we create Wittr db, set id as primary key and tim ...
分类:
数据库 时间:
2016-05-20 06:10:26
阅读次数:
372
Intead of cache the root floder, we want to cache skeleton instead. Respond to requests for the root page with thepage skeleton from the cache: ...
分类:
系统相关 时间:
2016-05-18 06:52:39
阅读次数:
179
Create a db: The oldVersion switch between old db and new db. So here we create a new people db. ReadWrite: Group By:TO do gourp by we need to create ...
分类:
数据库 时间:
2016-05-18 06:51:49
阅读次数:
203
Use the library indexedDB-promised. Create a database and stroe: Notice put() function take value frist then key. Read the key in stroe: Write value t ...
分类:
数据库 时间:
2016-05-18 06:50:19
阅读次数:
220
When the refersh button is clicked, we need to tell the waiting service worker to replace the current service worker right away. Then we refresh the p ...
分类:
其他好文 时间:
2016-05-17 06:24:53
阅读次数:
227
In some rare cases, you need to ask user to refresh the browsser to update the version. Maybe because some secrity issues. As we have learnt so far. A ...
分类:
其他好文 时间:
2016-05-17 06:22:03
阅读次数:
305
So once you modify the code, service worker will auto create a new one and it won't take control over until the previous service work total die(close ...
分类:
系统相关 时间:
2016-05-16 21:58:26
阅读次数:
223
If you want your application works offline or lie-wifi. You need to use cache. API: Create Caches: Create single cache: Get the cache: When to start c ...
分类:
系统相关 时间:
2016-05-16 21:50:43
阅读次数:
870
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 ...
分类:
其他好文 时间:
2016-05-16 07:05:02
阅读次数:
237