Caching https for offline use

I’m trying to use mitmproxy as a caching proxy. Everything works fine as long as the proxy is connected to the internet, but after visiting each of the videos through the proxy, if I disconnect, nothing works, so I’m doing something wrong.

How can I ensure that the responses are saved and replayed when no internet is available?
I also considered polipo, but that doesn’t seem to be able to cache https requests (no mitm)


Hi @spaethnl,

How are you configuring mitmproxy to cache responses?