An URL extension helper to append version to content URL for files such as js, css, json, etc for cache busting for ASP.NET MVC applications. Version is computed as SHA256 hash of the content and cached for the lifetime of the request cache HttpContext.Cache
.
AppendVersion is available on NuGet.
dotnet add package AppendVersion
<script type="text/javascript" src="@Url.AppendVersion("~/Scripts/jquery.validate.js")"></script>