aboutsummaryrefslogtreecommitdiff
path: root/public/sw.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/sw.js')
-rw-r--r--public/sw.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/public/sw.js b/public/sw.js
new file mode 100644
index 0000000..cafb778
--- /dev/null
+++ b/public/sw.js
@@ -0,0 +1,8 @@
+importScripts(
+ 'https://storage.googleapis.com/workbox-cdn/releases/6.5.4/workbox-sw.js'
+);
+
+// This is your Service Worker, you can put any of your custom Service Worker
+// code in this file, above the `precacheAndRoute` line.
+
+workbox.precaching.precacheAndRoute(self.__WB_MANIFEST || []); \ No newline at end of file