You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you expect to happen? What happened instead?
When the service worker is registered for the first time in the browser there is a chance that the request to /replay/?source= is not intercepted in time which causes the 404 page from the website embedding replay to be iframed instead. Most of the times the 404 will only be seen momentarily and then it will try to reload (up to 2 times). However sometimes it will not reload (this happened mostly with Edge, not so much with Chrome), which forces the client to manually refresh.
Open browser dev-tools and clear all application storage data (make sure that unregister service workers is checked). Go to the network tab.
Refresh the page.
The site might return a 404 first and then load replay. Repeat the steps if not. With the demo website it didn’t happen too often but with a heavier project it happened every time.
Additional details
Workaround: Looking at the response of that first request it looks like this:
So one way to avoid the 404 is to copy the above html and self-host it in /replay/index.html. Then on the web server make sure requests to /replay/ are rewritten to /replay/index.html. This way the first request will get the expected response if the service worker does not register and intercepts on time. Subsequent requests will be intercepted as expected. However this might not be a good long term solution if the contents of the above html change In a future version.
The text was updated successfully, but these errors were encountered:
ReplayWeb.page Version
v2.0.0-2.3.4
What did you expect to happen? What happened instead?
When the service worker is registered for the first time in the browser there is a chance that the request to
/replay/?source=
is not intercepted in time which causes the 404 page from the website embedding replay to be iframed instead. Most of the times the 404 will only be seen momentarily and then it will try to reload (up to 2 times). However sometimes it will not reload (this happened mostly with Edge, not so much with Chrome), which forces the client to manually refresh.Step-by-step reproduction instructions
Additional details
Workaround: Looking at the response of that first request it looks like this:
So one way to avoid the 404 is to copy the above html and self-host it in
/replay/index.html
. Then on the web server make sure requests to/replay/
are rewritten to/replay/index.html
. This way the first request will get the expected response if the service worker does not register and intercepts on time. Subsequent requests will be intercepted as expected. However this might not be a good long term solution if the contents of the above html change In a future version.The text was updated successfully, but these errors were encountered: