Files
daily-counter/app/static/service-worker.js
John Ahlroos c14a86b190
All checks were successful
Build & Release / build-docker-image (push) Successful in 1m51s
Build & Release / deploy-to-production (push) Successful in 8s
Add PWA manifest and SW
2026-04-10 21:08:45 +02:00

7 lines
196 B
JavaScript

self.addEventListener('fetch', event => {
event.respondWith(
caches.match(event.request).then(response => {
return response || fetch(event.request);
})
);
});