Skip to content

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.

License

Notifications You must be signed in to change notification settings

hancheester/append-version

Repository files navigation

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>

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published