- From: Lewis Pham <notifications@github.com>
- Date: Wed, 01 Jun 2022 03:46:33 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 1 June 2022 10:46:45 UTC
I'm posting this question here because I dont know whether it's a specified behavior nor a bug. So I would really appreciate if there are some confirmations about this. As you can see from this log then it's look like my service worker is catching requests from a different port. It happens when I navigate to this url `http://localhost:5000/users/sign-in`. <img width="1343" alt="Screen Shot 2022-06-01 at 16 38 02" src="https://user-images.githubusercontent.com/7781091/171384369-ac2ded4e-a3ca-48e4-961d-f86160426b29.png"> The code for registering service worker ```typescript await navigator.serviceWorker.register("/app/service-worker.js", { scope: "/", updateViaCache: "none" }) // header for /app/service-worker.js Service-Worker-Allowed: / ``` The request to port `35730` is coming from this ```html <script async="" src="//localhost:35730/livereload.js?snipver=1" id="livereloadscript"></script> ``` With this configuration, shouldn't service worker catches requests to `http://localhost:5000/` only? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1646 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1646@github.com>
Received on Wednesday, 1 June 2022 10:46:45 UTC