# Caching https for offline use

**URL:** https://discourse.mitmproxy.org/t/caching-https-for-offline-use/55
**Category:** help
**Created:** [June 22, 2016, 11:31pm UTC](https://discourse.mitmproxy.org/t/caching-https-for-offline-use/55 "2016-06-22T23:31:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![spaethnl](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@spaethnl](https://discourse.mitmproxy.org/u/spaethnl)
#### Post date: [June 22, 2016, 11:31pm UTC](https://discourse.mitmproxy.org/t/caching-https-for-offline-use/55/1 "2016-06-22T23:31:04Z")

</div>

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)

Thanks

---

<div class="post-metadata">

### Author: ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)
#### Post date: [June 23, 2016, 9:14am UTC](https://discourse.mitmproxy.org/t/caching-https-for-offline-use/55/2 "2016-06-23T09:14:46Z")

</div>

Hi @spaethnl,

How are you configuring mitmproxy to cache responses?
