Re: [w3c/ServiceWorker] Consider mechanisms to bypass the service worker for things that we know won't be in it's cache (#1026)

A solution for now to "bypass" the service worker:
```js
async function handleFetch(event) {
    // Example to not cache: const init = { 'cache': 'reload' }; let response = await fetch(url, init);
    // A way to bypass the service worker
    if (event.request.cache === "reload") return
    event.respondWith(....);
}
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1026#issuecomment-1029374103
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1026/1029374103@github.com>

Received on Thursday, 3 February 2022 20:31:16 UTC