/ Published in: jQuery
Cache control when pulling in scripts, redefined "getScript" function
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.getScript = function(url, callback, cache){ $.ajax({ type: "GET", url: url, success: callback, dataType: "script", cache: cache }); };
URL: http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/