changes name from versionHash to cacheBuster

This commit is contained in:
Shannon
2017-06-15 09:20:46 +02:00
parent 0858e04345
commit 439c30e2fd
4 changed files with 4 additions and 4 deletions

View File

@@ -756,7 +756,7 @@ namespace Umbraco.Web.Editors
var version = UmbracoVersion.GetSemanticVersion().ToSemanticString();
app.Add("versionHash", string.Format("{0}.{1}", version, ClientDependencySettings.Instance.Version).GenerateHash());
app.Add("cacheBuster", string.Format("{0}.{1}", version, ClientDependencySettings.Instance.Version).GenerateHash());
app.Add("version", version);
//useful for dealing with virtual paths on the client side when hosted in virtual directories especially

View File

@@ -52,7 +52,7 @@ namespace Umbraco.Web
},
""application"": {
""applicationPath"": """ + html.ViewContext.HttpContext.Request.ApplicationPath + @""",
""versionHash"": """ + string.Format("{0}.{1}", version, ClientDependencySettings.Instance.Version).GenerateHash() + @"""
""cacheBuster"": """ + string.Format("{0}.{1}", version, ClientDependencySettings.Instance.Version).GenerateHash() + @"""
},
""isDebuggingEnabled"" : " + html.ViewContext.HttpContext.IsDebuggingEnabled.ToString().ToLowerInvariant() + @"
};