nuxt-community / pwa-module

Zero config PWA solution for Nuxt.js
https://pwa.nuxtjs.org
MIT License
1.23k stars 171 forks source link

axios request stalled but has completed in service worker #418

Open edwh opened 3 years ago

edwh commented 3 years ago

Apologies for the sparse diagnostics - this is an intermittent problem which I managed to capture on a user's machine and debug somewhat using teamviewer.

I have an axios request which appears stalled forever (for at least 15 minutes) in the main browser tab:

image

...but it has completed successfully in the service worker:

image

I'm not very familiar with how the service worker handling of requests works. What could cause it to fail to send the response back to the main tab?

This is an API request which I would never want cached, so if I can avoid this going via the service worker that would be fine and might help.

This seems to happen regularly for this one user, and both on Chrome and Firefox (though I've only seen it on Chrome). It only seems to happen in for one specific place in my application. I can't reproduce it.

This is on nuxtjs/axios 5.12.3 and nuxtjs/pwa 3.3.2, on a Mac. I couldn't see an unusual browser extensions installed.