Moves the JsNoCache to a real readable file instead of an embedded string (now an embedded file resource), updates it's logic to not append the hash to any dependencyhandler.axd request, fixes case sensitivity checking on the URLs, changes the cdf + umb version to be a nice shorter hash of the two.
This commit is contained in:
16
src/Umbraco.Web/UI/JavaScript/JsNoCache.js
Normal file
16
src/Umbraco.Web/UI/JavaScript/JsNoCache.js
Normal file
@@ -0,0 +1,16 @@
|
||||
yepnope.addFilter(function (resourceObj) {
|
||||
var url = resourceObj.url.toLowerCase();
|
||||
var rnd = ##rnd##;
|
||||
var op = "?";
|
||||
debugger;
|
||||
if(url.indexOf("lib/") === 0 || url.indexOf("js/umbraco.") === 0 || url.indexOf("dependencyhandler.axd") > 0) {
|
||||
|
||||
return resourceObj;
|
||||
}
|
||||
if(url.indexOf("?") > 0){
|
||||
op = "&";
|
||||
}
|
||||
|
||||
resourceObj.url = resourceObj.url + op + "umb__rnd=" + rnd;
|
||||
return resourceObj;
|
||||
});
|
||||
Reference in New Issue
Block a user