I'm testing a custom analytics service we have written that captures a number of events including on click events that are fired when a user clicks on a link to an external site.
We have found inside the hammerhead reverse proxy that any network call fired on or after clicking on an a href link are never sent by the browser and received by the server. It appears the browser cancels all in flight network requests or fails to fire any new network requests and all unload events as well.
I've tested this back to back with multiple browsers and the events work normally as expected when interacting with the browser but they fail inside of testcafe tests and when manually using the site inside the hammerhead reverse proxy.
Any network event triggered as part of a link click and all unload behaviour is finalised when navigating to a new page.
Given a user is at https://linktr.ee/dalebaldwin
When a user clicks on the Github link
Then all network events are fired and completed during transition to github.com
node.js
Chrome, Chromium, Firefox, Safari, UI Kit webview, IE, Edge
Thank you for your report. I've reproduced the issue. We'll research it and update this thread once we have any news.
Most helpful comment
Thank you for your report. I've reproduced the issue. We'll research it and update this thread once we have any news.