next-pwa icon indicating copy to clipboard operation
next-pwa copied to clipboard

Service Worker make request pending for minutes

Open meotimdihia opened this issue 4 years ago • 5 comments

Summary

Service Worker make requests pending for minutes. I have to unregister the service worker to make requests to continue. The problem is related to https://github.com/vercel/next.js/issues/10061

How To Reproduce

The problem happened randomly. I dunno how to reproduce reliably.

Screenshots

image image

meotimdihia avatar Apr 14 '21 04:04 meotimdihia

@meotimdihia This is probably something else, but something I've run into: Double check if you have "Update on reload" checked in the Chrome Inspector under Application → Service Workers. For me, this makes the size of the local cache (which can be quite large when next-pwa caches the whole public dir proactively) have a huge impact/delay on every network request.

davidkaneda avatar Apr 14 '21 21:04 davidkaneda

@davidkaneda hi, "update on reload" is unchecked on my browser.

meotimdihia avatar Apr 15 '21 10:04 meotimdihia