Return to Snippet

Revision: 41299
at February 15, 2011 21:18 by lamebollock


Initial Code
$.getScript = function(url, callback, cache){
	$.ajax({
			type: "GET",
			url: url,
			success: callback,
			dataType: "script",
			cache: cache
	});
};

Initial URL
http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/

Initial Description
Cache control when pulling in scripts, redefined "getScript" function

Initial Title
jQuery.getScript() does not cache – Jamie Thompson

Initial Tags
ajax, script, jquery, cache

Initial Language
jQuery