1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
exports._makeRequest = function(url) {
return function(options) {
return new Request(url, options);
}
}
exports._openCache = function(cacheName) {
return function() {
return window.caches.open(cacheName);
}
}
exports._delete = function(cacheName) {
return function() {
return caches.delete(cacheName);
}
}
exports._deleteReq = function(cache) {
return function(req) {
return function() {
return cache.delete(req);
}
}
}
exports._add = function(cache) {
return function(req) {
return function() {
return cache.add(req);
}
}
}
exports._match = function(cache) {
return function(req) {
return function() {
return cache.match(req);
}
}
}
exports._fetch = function(req) {
return function() {
return fetch(req);
}
}