In IE using Javascript, is there way to know if doing a regular GET on a URL using XmlHttpRequest will pull its data from the cache or hit the server?
If there is no way to know in advance, is there a way to tell XmlHttpRequest to NOT hit the server, and instead pull from the cache if possible?
To clarify: I understand how browser caching works, I'm trying to understand if I can use javascript to determine in advance if an ajax call will use the browsers cache. In my case, I'm writing a JS library, so I don't control the server's behavior, so I'm highly constrained in terms of knowing apriori what cache settings/headers are.