# Caching and returning different responses in sequence

**URL:** https://discourse.mitmproxy.org/t/caching-and-returning-different-responses-in-sequence/695
**Category:** help
**Created:** [November 9, 2017, 10:58am UTC](https://discourse.mitmproxy.org/t/caching-and-returning-different-responses-in-sequence/695 "2017-11-09T10:58:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jig](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jig](https://discourse.mitmproxy.org/u/jig)
#### Post date: [November 9, 2017, 10:58am UTC](https://discourse.mitmproxy.org/t/caching-and-returning-different-responses-in-sequence/695/1 "2017-11-09T10:58:44Z")

</div>

Is mitmproxy capable of storing responses to a file and then returning a sequence of responses from those files, for a given request?

E.g.

Call someURL and store the different response data sets to files.

First call to someURL and load the response from file1  
Second call to someURL and load the response from file2  
Third call to someURL and load the response from file3

---

<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: [November 13, 2017, 5:56am UTC](https://discourse.mitmproxy.org/t/caching-and-returning-different-responses-in-sequence/695/2 "2017-11-13T05:56:55Z")

</div>

Yes, you can use mitmproxy’s server replay mode (and check that the server replay nopop option is turned off).
