I have a Tree Grid control which I load using XML. My server side code sends me an XML string in the response. I use this response from the server to populate my grid (I am not creating any xml file). Eg :
In my web.xml file I map getDataForJob.do to a Servlet. This servlet returns me the XML in the response as a string.
Now once I have the data loaded into my tree grid I want to cache this xml data so that when the user loads the grid again the server side should not get invoked and my grid should get loaded from the cache.
Please suggest how this can be achieved.
Technically browser cache XML files automatically ( based on file headers )
You can disable build-in “anti-cache” feature by