Caching and returning different responses in sequence

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

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