This was only reproducible in certain Windows environment with Microsoft Edge v142.
- Download node (standalone or install)
- Download http-server-project.zip, unzip it
- Run
node http-server-project/server.js
- Go to http://localhost:3000/
- Code does the following:
- When you go to /, it redirects you to test/index.html with HTTP 307
- When you go to index.html, it redirects you to test/app.html with HTTP 303
- Service worker is registered by app.html under the /test/ scope
- Close browser, re-open browser
- Or close tab, stop the registered service worker on
edge://serviceworker-internals page
- Go to http://localhost:3000/ again
- Should hang at this point, SW logs that you are visiting that page but nothing happens
- Try changing the SW return to respondWith and reinstall SW. Repeat steps. Should work now.
Redirect request appears to be stuck if a service worker is restarted, and does not handle the request.
This was only reproducible in certain Windows environment with Microsoft Edge v142.
node http-server-project/server.jsedge://serviceworker-internalspageRedirect request appears to be stuck if a service worker is restarted, and does not handle the request.