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:
perploug
2014-02-10 13:02:16 +01:00
parent 2850c3c3de
commit 36a8599e62
8 changed files with 83 additions and 31 deletions

View File

@@ -89,11 +89,15 @@ namespace Umbraco.Web.UI.JavaScript {
/// <summary>
/// Looks up a localized string similar to yepnope.addFilter(function (resourceObj) {
/// var url = resourceObj.url;
/// var _op = &quot;?&quot;;
/// if(url.indexOf(&quot;lib/&quot;) === 0 || url.indexOf(&quot;js/umbraco.&quot;) === 0){
/// return resourceObj;
/// }
/// if(url.indexOf(&quot;?&quot;) &gt; 0){
/// _op = &quot;&amp;&quot;;
/// }
///
/// resourceObj.url = resourceObj.url + &quot;?umb__rnd=&quot; + (new Date).getTime();
/// resourceObj.url = resourceObj.url + _op + &quot;umb__rnd=&quot; + (new Date).getTime();
/// return resourceObj;
///});.
/// </summary>