about summary refs log tree commit diff
path: root/BugMine.Web/wwwroot/service-worker.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-04-06 04:06:58 +0200
committerRory& <root@rory.gay>2024-04-06 04:06:58 +0200
commit74f551ef1314481e3aa8c20fedb48033255617b9 (patch)
treec515a7b6f2511320a4d1b23a1eef963f9707c539 /BugMine.Web/wwwroot/service-worker.js
downloadBugMine-74f551ef1314481e3aa8c20fedb48033255617b9.tar.xz
Initial commit
Diffstat (limited to 'BugMine.Web/wwwroot/service-worker.js')
-rw-r--r--BugMine.Web/wwwroot/service-worker.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/BugMine.Web/wwwroot/service-worker.js b/BugMine.Web/wwwroot/service-worker.js
new file mode 100644
index 0000000..c6d0085
--- /dev/null
+++ b/BugMine.Web/wwwroot/service-worker.js
@@ -0,0 +1,4 @@
+// In development, always fetch from the network and do not enable offline support.

+// This is because caching would make development more difficult (changes would not

+// be reflected on the first load after each change).

+self.addEventListener('fetch', () => { });