摘要:
sw-toolbox: Github It provides a cononical implementation of all the runtime caching strategies that you need for you dynamice content. sw-precache: G 阅读全文
摘要:
Mainly about Progressive web app: HTTPS Add to home screen Splash screen service worker notifications, bg sync offline notifications, bg sync Service 阅读全文
摘要:
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 阅读全文
摘要:
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, 阅读全文
摘要:
In this lesson, you will learn how to host a static website on Amazon S3. I will show you how to create the buckets, create the bucket policy to allow 阅读全文
摘要:
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 阅读全文
摘要:
import idb from 'idb'; var dbPromise = idb.open('test-db', 4, function (upgradeDb) { switch (upgradeDb.oldVersion) { case 0: // keyval store is already created at version 1 ... 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文