Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 962 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 962 Bytes

Append Version

Package Version NuGet Downloads License

About

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.

Installation

AppendVersion is available on NuGet.

dotnet add package AppendVersion

Usage

<script type="text/javascript" src="@Url.AppendVersion("~/Scripts/jquery.validate.js")"></script>