2.3.0 • Published 5 years ago
the-sw-util v2.3.0
the-sw-util
Utility for service workers
Installation
$ npm install the-sw-util --save
Usage
'use strict'
const {appCache, cachingFetch} = require('the-sw-util')
async function tryExample () {
self.addEventListener('fetch', (event) => {
event.respondWith(
async function () {
const cache = await appCache('my-site', 'v1.0.0')
return cachingFetch(cache, event.request)
}()
)
})
}
tryExample().catch((err) => console.error(err))
API Guide
License
This software is released under the MIT License.
Links
2.3.0
5 years ago
2.2.0
5 years ago
2.1.4
5 years ago
2.1.3
5 years ago
2.1.2
5 years ago
2.1.1
5 years ago
2.0.5
6 years ago
2.0.4
6 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago