I'm looking for an existing solution that would allow us to make request normally and let a sort of proxy cache everything we do. For instance when querying a REST service the proxy would write the result of the response with related media included. Thus, next time we query it, we get the appropriate response with the local copy of everything the proxy has cached.
The same would apply for POST. When posting, if something goes wrong: let's say the internet is down or service return 500, the POST request and it's content got cached locally and the smart proxy will try to repost the content a certain numbers of time.
I hope it is sufficient clear :) Thanks !