I have simple application, that shows list of many items, where user can display detail for each item, which is obtained by Ajax.
However, if user closes the detail and opens again, application makes another Ajax request, to get the same content again.
Is there any simple solution how to prevent this by caching requests on client, so when the user displays the same detail again, the content will be loaded from cache. Preferably using jQuery.
I think this could be solved with proxy object, which would store request when its made for the first time, and when the request is made again, proxy will just return previous result without making another Ajax request.
But I'm looking for some simpler solution, where I won't have to implement all this by myself.