summary refs log tree commit diff
path: root/testFrontend/SafeNSound.Demo/wwwroot/service-worker.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-11 07:38:05 +0200
committerRory& <root@rory.gay>2025-06-11 07:41:37 +0200
commitd6c791af681fdcc84c5a79a7b30d35db9231e404 (patch)
tree73816b7eda8ff52e7b8b28c9ab68960554d252d3 /testFrontend/SafeNSound.Demo/wwwroot/service-worker.js
parentAPI docs (diff)
downloadnodejs-final-assignment-d6c791af681fdcc84c5a79a7b30d35db9231e404.tar.xz
Add initial demo
Diffstat (limited to 'testFrontend/SafeNSound.Demo/wwwroot/service-worker.js')
-rw-r--r--testFrontend/SafeNSound.Demo/wwwroot/service-worker.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/testFrontend/SafeNSound.Demo/wwwroot/service-worker.js b/testFrontend/SafeNSound.Demo/wwwroot/service-worker.js
new file mode 100644

index 0000000..fe614da --- /dev/null +++ b/testFrontend/SafeNSound.Demo/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', () => { });