-
Couldn't load subscription status.
- Fork 207
Description
It would be really nice to have the option to disable the recording of identical requests (#161). While this feature is definitely useful for some people it unfortunately breaks my use case.
I have some tests that make two (different) requests to the same API. That API requires authorization, which requires another request to get a token. When recording the requests the following happens:
- Get the auth token and cache it
- Do the first request
- Get the cached auth token
- Do the second request
This works fine. The issue occurs when we run this test at a later time. The auth token has an expire time, which is of course part of the recorded response. So when we run the test the following happens:
- Get the auth token and cache it
- Do the first request
- Try to get the cached auth token, notice it is no longer vaild
- Try to get the auth token and fail because the request index does not match
I currently work around this by removing the index from the saved request, which works but is not ideal.
In my use case I don't need the option to record multiple identical requests so a simple option to disable the index-check would work.