mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-19 16:51:40 +01:00
Add explaining comment
This commit is contained in:
parent
57e2c4ea45
commit
8fba3f4ca9
@ -69,6 +69,11 @@ async function purgeOldCaches() {
|
||||
}
|
||||
|
||||
self.addEventListener('fetch', (event) => {
|
||||
/*
|
||||
service worker shouldn't handle xhr uploads because otherwise
|
||||
the progress events won't fire.
|
||||
This has to do with xhr not being supported in service workers.
|
||||
*/
|
||||
if (event.request.method === "GET") {
|
||||
event.respondWith(handleRequest(event.request));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user