Can I prevent the Firefox developer tools network panel from clearing on page reload?
HttpFirefoxFirefox Developer-ToolsHttp Problem Overview
I would like to observe the contents of a POST request whose successful completion results in a location.reload()
- when I try to capture this request in the Network Panel of the Firefox developer tools, I find that the page reload clears the list of captured events. Can I prevent this clearing?
Http Solutions
Solution 1 - Http
From Firefox 31 onwards you can use the "Enable persistent logs" setting to prevent the Network Monitor from clearing the list on reload.
Solution 2 - Http
Despite knowing the name for the setting is "Enable persistent logs", it took me a while to find it on the settings page. I hope this helps:
Solution 3 - Http
I couldn't find this setting in Firefox 57. The setting has been moved to the network tab itself, above the log table
Solution 4 - Http
Roughly three years after BeetleJuice's update, it seems to have moved again - now, you need to click the gear icon on the far right side for the option to appear. Hooray for our ever-changing user interface soup.
Solution 5 - Http
If "Enable persistent Log" settings is not available in the devtool settings, you can go to about:config
(type this in the URL box and enter) page and search for persistlog
and change it from there(toggle button on the right).
I can see two options and enabled both. :)
devtools.netmonitor.persistlog
, devtools.webconsole.persistlog