Adds cache bursting to production mode
Package installer bumps CDF version, we make sure to purge the angular cache initial js loader gets a cache burst as well
This commit is contained in:
@@ -124,11 +124,15 @@
|
||||
<data name="JsNoCache" xml:space="preserve">
|
||||
<value>yepnope.addFilter(function (resourceObj) {
|
||||
var url = resourceObj.url;
|
||||
var _op = "?";
|
||||
if(url.indexOf("lib/") === 0 || url.indexOf("js/umbraco.") === 0){
|
||||
return resourceObj;
|
||||
}
|
||||
if(url.indexOf("?") > 0){
|
||||
_op = "&";
|
||||
}
|
||||
|
||||
resourceObj.url = resourceObj.url + "?umb__rnd=" + (new Date).getTime();
|
||||
resourceObj.url = resourceObj.url + _op + "umb__rnd=" + (new Date).getTime();
|
||||
return resourceObj;
|
||||
});</value>
|
||||
</data>
|
||||
|
||||
Reference in New Issue
Block a user