Skip to content

Redirect request hangs if service worker restarts from stopped state #400

@philmark

Description

@philmark

This was only reproducible in certain Windows environment with Microsoft Edge v142.

  1. Download node (standalone or install)
  2. Download http-server-project.zip, unzip it
  3. Run node http-server-project/server.js
  4. 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
  1. Close browser, re-open browser
  • Or close tab, stop the registered service worker on edge://serviceworker-internals page
  1. Go to http://localhost:3000/ again
  2. Should hang at this point, SW logs that you are visiting that page but nothing happens
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions