summaryrefslogtreecommitdiff
path: root/public/sw.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/sw.js')
-rw-r--r--public/sw.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/public/sw.js b/public/sw.js
new file mode 100644
index 00000000..e6a263d1
--- /dev/null
+++ b/public/sw.js
@@ -0,0 +1,27 @@
+// const cacheName = 'cache-v1'
+// const resourceToPrecache = [
+// '/',
+// 'index.html',
+// '/css/',
+// '/js/',
+// '/pages/',
+// '/fonts/'
+// ]
+
+// self.addEventListener('install', event => {
+// console.log("Service Worker: Installed");
+// event.waitUntil(
+// caches.open(cacheName)
+// .then(cache => {
+// return cache.addAll(resourceToPrecache)
+// })
+// )
+// })
+
+// self.addEventListener('fetch', event => {
+// event.respondWith(catches.match(event.request)
+// .then(cachedResponse => {
+// return cachedResponse || fetch(event.request);
+// })
+// );
+// }); \ No newline at end of file