Changeset 0.19.0 (#81)

This commit is contained in:
2026-02-28 21:55:13 +00:00
parent a591b810a9
commit 091ce2af6a
5 changed files with 393 additions and 314 deletions

View File

@@ -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') ||