I have a javascript file loading via jQuery.getScript on the client and I'm setting cache-control headers with 1hr browser caching on the server side. It looks like IE caches ajax requests and the functions present in the file do not execute in IE. Does setting false in the getScript call override the cache-control headers of 1hr set from the server side?
var jsCache = true;
if($.browser.msie){
jsCache = false;
}
if(!initialized){
$.getScript('thatjsfileurl', function() {
$("#welcome").pluginInit({
start:'newPage'
});
initialized = true;
},jsCache);
}
Note: There is also Akamai in place, so can't set the browser detection code on the servlet side.