If you've ever tried to debug a long sequence of redirects where one of them is a 200 response with an HTML form that automatically gets submitted via JavaScript (cough SimpleSAMLphp cough), you might have noticed, in frustration, that you can't see that response in the Chrome DevTools' network tab and, instead, you get this message:

Failed to load response data: No resource with given identifier found.

Apparently, there are legitimate reasons why this happens and is hard to fix, but as a workaround, you can set a breakpoint on the "beforeunload" event (open the "Sources" tab, "Event Listener Breakpoints" section on the right sidebar, and check the "Load > beforeunload" checkbox). This will cause the browser to stop right before navigating away from the page, making its response available.

Previous on dev tools
Mastodon Mastodon