I have a simple application that shows a list of many elements where the user can display the details for each element that Ajax received.
However, if the user closes the details and reopens, the application makes another Ajax request to get the same content again.
Is there any simple solution how to prevent this by caching requests on the client, so when the user displays the same part again, the contents will be loaded from the cache. Preferred to use jQuery .
I think this can be solved using a proxy object that will store the request when it is created for the first time, and when the request is executed again, the proxy server will simply return the previous result without making another Ajax request.
But I'm looking for some simpler solution where I do not have to do it all on my own.
source share