Possible Duplicate:
How to detect when XHR returns a cached resource?
I built an auto loader that only loads a javascript file if it has not already been loaded on this page using jquery with:
$.getScript();
I first check if the functions exist and if they do not I load them. However, this is unable to account for the browsers cache, I was hoping I might be able to figure out how.
One thing I would like to add to it is to see if the user already has the file saved in their browsers cache. Is it possible to check if a file from your server has already been cached on the users browser, so that I can skip making the call to the server at all?