so://phie

outline

A web-based drawing app
git clone git://soophie.de/outline

blob: c75d37ce4cf8c761f972d1f7fa4841084e8954e3 (373 bytes)[doc][blame][raw]

1const FILES_TO_CACHE = [];

2

3self.addEventListener('install', function(event) {

4 event.waitUntil(

5 caches.open('test').then((cache) => {

6 return cache.addAll(FILES_TO_CACHE);

7 })

8 );

9});

10

11self.addEventListener('fetch', function(event) {

12 event.respondWith(

13 caches.match(event.request).then(function(response) {

14 return response || fetch(event.request);

15 })

16 );

17});