Used for Cache Busting. Cache Busting means, handling static content with the ability to reflect any changes immediately made by the server. This Attribute can be used for JavaScript and Css. If you use this Tag you might also include the Asp.net - Tag
Questions tagged [asp-append-version]
5 questions
71
votes
3 answers
How does javascript version (asp-append-version) work in ASP.NET Core MVC?
It seems that there is no dynamic bundling supported in the new MVC (link), and it should be done using a gulp task. MVC supports some new attribute called asp-append-version, but I have not found any explanation on how it works. I suspect that it's…

Ilya Chernomordik
- 27,817
- 27
- 121
- 207
7
votes
3 answers
ASP.NET Core's asp-append-version attribute not working for static files outside of the wwwroot directory
I have an ASP.NET Core project with static files in both the wwwroot directory and bower_components directory.
I am able to server these files by adding this to my Startup.cs class:
StaticFileOptions rootFileOptions = new…

AxiomaticNexus
- 6,190
- 3
- 41
- 61
3
votes
0 answers
C# js Append version also for files which are used in imports
I am on c# .net core 2.2 webapp
I am using [asp-append-version="true"] in cshtml for js and css for cache-bursting.
But the issue is i am adding a script like