Changeset 0.19.0 (#81)
This commit is contained in:
@@ -68,6 +68,11 @@ self.addEventListener('activate', (event) => {
|
||||
self.addEventListener('fetch', (event) => {
|
||||
const url = new URL(event.request.url);
|
||||
|
||||
// Only handle http/https — ignore chrome-extension://, moz-extension://, etc.
|
||||
if (url.protocol !== 'https:' && url.protocol !== 'http:') {
|
||||
return;
|
||||
}
|
||||
|
||||
// Never cache API calls, WebSocket upgrades, branding, extensions, or CM6 bundle
|
||||
if (url.pathname.includes('/api/') ||
|
||||
url.pathname.includes('/ws') ||
|
||||
|
||||
Reference in New Issue
Block a user