bundle js by version so webfront updates don't need a cache refresh
This commit is contained in:
parent
3b7a22edef
commit
5b11196b29
@ -128,6 +128,7 @@ namespace SharedLibraryCore
|
|||||||
ViewBag.Authorized = Authorized;
|
ViewBag.Authorized = Authorized;
|
||||||
ViewBag.Url = Manager.GetApplicationSettings().Configuration().WebfrontUrl;
|
ViewBag.Url = Manager.GetApplicationSettings().Configuration().WebfrontUrl;
|
||||||
ViewBag.User = Client;
|
ViewBag.User = Client;
|
||||||
|
ViewBag.Version = Manager.Version;
|
||||||
ViewBag.SocialLink = SocialLink ?? "";
|
ViewBag.SocialLink = SocialLink ?? "";
|
||||||
ViewBag.SocialTitle = SocialTitle;
|
ViewBag.SocialTitle = SocialTitle;
|
||||||
ViewBag.Pages = Pages;
|
ViewBag.Pages = Pages;
|
||||||
|
@ -164,7 +164,7 @@
|
|||||||
<script type="text/javascript" src="~/js/search.js"></script>
|
<script type="text/javascript" src="~/js/search.js"></script>
|
||||||
</environment>
|
</environment>
|
||||||
<environment include="Production">
|
<environment include="Production">
|
||||||
<script type="text/javascript" src="~/js/global.min.js"></script>
|
<script type="text/javascript" src="~/js/global.min.js?version=@ViewBag.Version"></script>
|
||||||
</environment>
|
</environment>
|
||||||
<script>
|
<script>
|
||||||
let _localizationTmp = @Html.Raw(Json.Serialize(ViewBag.Localization));
|
let _localizationTmp = @Html.Raw(Json.Serialize(ViewBag.Localization));
|
||||||
|
Loading…
Reference in New Issue
Block a user