Ages ago (like 2001 or so?) I started building something to automatically archive everything I browse. I used tcpflow (https://www.circlemud.org/jelson/software/tcpflow/). I've seen a fair bit of varions of this idea over the years
Then SSL/TLS started getting widespread and I lost focus. Nowadays, I guess you would build it as an extension in the browser.