bundle js by version so webfront updates don't need a cache refresh

This commit is contained in:
RaidMax 2021-08-30 20:30:06 -05:00
parent 3b7a22edef
commit 5b11196b29
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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));