Add shared synced lyrics, chapters and personal bookmarks with revision history, API tokens and an admin page
This commit is contained in:
@@ -61,6 +61,8 @@ const SHELL = [
|
||||
'/fingerprint.js',
|
||||
'/opfs.js',
|
||||
'/opfs-worker.js',
|
||||
'/video-edit.js',
|
||||
'/lyrics-core.js',
|
||||
'/app.js',
|
||||
'/manifest.webmanifest',
|
||||
'/icons/icon-192.png',
|
||||
@@ -143,6 +145,9 @@ self.addEventListener('fetch', (e) => {
|
||||
// Only intercept GET/HEAD — let POST (sync endpoint) go through unmodified
|
||||
if (request.method !== 'GET' && request.method !== 'HEAD') return;
|
||||
|
||||
// The admin page is online-only and must never be served from a cache.
|
||||
if (url.pathname === '/admin' || url.pathname.startsWith('/admin.')) return;
|
||||
|
||||
// API calls and binary downloads → network only, no caching
|
||||
if (url.pathname.startsWith('/api/')) {
|
||||
e.respondWith(fetch(request));
|
||||
|
||||
Reference in New Issue
Block a user