many many fixes
This commit is contained in:
@@ -39,6 +39,9 @@ self.addEventListener('fetch', event => {
|
||||
// Only handle GET requests
|
||||
if (request.method !== 'GET') return;
|
||||
|
||||
// Version checks must always hit the network (never cached)
|
||||
if (url.origin === location.origin && url.pathname === '/version.json') return;
|
||||
|
||||
// Handle HTML navigation requests (Offline support)
|
||||
if (request.mode === 'navigate') {
|
||||
event.respondWith(
|
||||
|
||||
Reference in New Issue
Block a user