security: add RBAC, HTTPS enforcement; add tests and CI pytest step
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// Minimal service worker (cache-first for shell)
|
||||
const CACHE = 'liferpg-shell-v1'
|
||||
self.addEventListener('install', (e) => {
|
||||
e.waitUntil(
|
||||
caches.open(CACHE).then((cache) => cache.addAll(['/','/index.html']))
|
||||
)
|
||||
e.waitUntil(
|
||||
caches.open(CACHE).then((cache) => cache.addAll(['/', '/index.html']))
|
||||
)
|
||||
})
|
||||
self.addEventListener('fetch', (e) => {
|
||||
e.respondWith(
|
||||
caches.match(e.request).then((r) => r || fetch(e.request))
|
||||
)
|
||||
e.respondWith(
|
||||
caches.match(e.request).then((r) => r || fetch(e.request))
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user