Open fahmiradica opened 7 months ago
Hi @fahmiradica. Thanks for reporting this. I'm having trouble reproducing it with the code you've provided. I set up a simple project here: https://github.com/ryanthemanuel/cypress-service-worker-reload and when I run the test I see the messages show up properly on reload. Is there something I'm missing in the code in that project that you are doing in your scenario?
Current behavior
Service Workers does not work after a page reload
Steps to reproduce:
The service worker is working before the reload, but after reloading it won't get any message posted from the page. No error is being shown in the console.
Desired behavior
Service workers should receive the postMessage even after the reload
Test code to reproduce
In page Javascript:
In service worker JS file:
Cypress Version
13.6.0
Node version
20.9.0
Operating System
Windows 11
Debug Logs
Other
No response