No need for handler to be async

This commit is contained in:
RMidhunSuresh 2021-11-08 22:20:56 +05:30
parent c1a8ffd814
commit 57e2c4ea45

View file

@ -68,7 +68,7 @@ async function purgeOldCaches() {
}
}
self.addEventListener('fetch', async (event) => {
self.addEventListener('fetch', (event) => {
if (event.request.method === "GET") {
event.respondWith(handleRequest(event.request));
}