BuilderIO / partytown

Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉

Home Page:https://partytown.builder.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[🐞] Firefox: 404 partytown-sandbox-sw.html

sotasan opened this issue · comments

Describe the bug

Hey,

I have tested around with Partytown a bit, and I have found that if you hard reload in Firefox it can't find the partytown-sandbox-sw.html. I have seen there were other issues with the same bug, but they did not have an example, so I have created an Astro project with this bug.

There are also quite a lot of warnings in Firefox, but I don't know if this is the intended behaviour for backwards compatibility or something like that. Those warnings don't occur in the incognito mode. I also have disabled all my extensions. (#582)
grafik

Reproduction

https://github.com/sotasan/apparent-ablation

Steps to reproduce

  1. pnpm install
  2. pnpm build
  3. pnpm preview
  4. Open http://localhost:4321 in Firefox
  5. Open the developer console
  6. Go to the Network tab
  7. Press Ctrl + Shift + R

Browser Info

Firefox

Additional Information

No response

I'm also testing partytown and have this same experience.

Also, Firefox doesn't even show the serviceworker when it does work..
Screenshot 2024-04-13 at 17 06 19