https://github.com/hancheester/append-version
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.
https://github.com/hancheester/append-version
asp-net-mvc aspnet-mvc cache-busting
Last synced: 7 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/hancheester/append-version
- Owner: hancheester
- License: mit
- Created: 2020-04-05T12:04:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-13T10:40:44.000Z (over 2 years ago)
- Last Synced: 2025-06-03T02:15:02.696Z (10 months ago)
- Topics: asp-net-mvc, aspnet-mvc, cache-busting
- Language: C#
- Homepage:
- Size: 1.72 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Append Version
[](https://www.nuget.org/packages/AppendVersion/)
[](https://www.nuget.org/packages/AppendVersion/)
[](https://github.com/hancheester/append-version/blob/master/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](https://www.nuget.org/packages/AppendVersion).
```sh
dotnet add package AppendVersion
```
## Usage
```html
```