Files
photoprism/internal/server/sw_fallback.js
2025-10-17 20:41:22 +02:00

15 lines
483 B
JavaScript

// Minimal fallback service worker served during development and tests.
// Production builds replace this handler with the Workbox-generated sw.js.
self.addEventListener("install", (event) => {
self.skipWaiting();
});
self.addEventListener("activate", (event) => {
event.waitUntil(self.clients.claim());
});
self.addEventListener("fetch", () => {
// Default network-first behaviour; caching is delegated to the
// Workbox-generated service worker in production builds.
});