aboutsummaryrefslogtreecommitdiff
path: root/public/sw.js
diff options
context:
space:
mode:
authorAlex <i@neonxp.dev>2023-03-08 19:27:35 +0300
committerGitHub <noreply@github.com>2023-03-08 19:27:35 +0300
commitdf52915806db050a8e0cfab2d686acfdbf5e0c5c (patch)
tree237533159fe116e01dd0712084d9473db1148edd /public/sw.js
Initial commitHEADmain
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