> Can you clarify if - in FACT- setting cache:true will affect > $.getScript() when it is getting the script from a different domain? > (and perhaps what technique $.getScript uses under the covers for the > cross domain case?) > > Also - the direct use of the cache parameter in an $.ajax( options) - > call - certainly will not work Cross Domain right? > > Is there a reason there cannot be a separate cache parameter in > $.getScript() in future that handles both same domain and cross domain > cases?
The answers are in the code. $.getScript calls $.ajax (via $.get) $.ajax always uses $.ajaxSettings for default settings $.ajax always turns off caching when requesting scripts cross domain scripts are fetched using a script tag same domain scripts are fetched via XHR