My page makes two requests: one to /login and one to /treeContents?rootID=9 for example. I'd like to combine them into one request, /loginAndTreeContents?rootID=9
But, the old way means that subsequent requests to /treeContents?rootID=9 will be retrieved from the cache, and the new way means that they won't.
So I was thinking, is there a way with javascript to manually take the response for /loginAndTreeContents?rootID=9 and jam it into the cache as if it was from /treeContents?rootID=9, so that subsequent requests will just return that?
Is there a way to manually do it with javascript? Or perhaps, can HTML5's appcache help me? Thanks!