aspnetcore-angular-universal
aspnetcore-angular-universal copied to clipboard
asp-append-version not working
Hi, i've just found out that cache busting is not working.
You need to add this row to _ViewImports.cshtml:
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
This will change this:
<script src="~/dist/main-client.js" asp-append-version="true"></script>
into this:
<script src="/dist/main-client.js?v=2kWeND34zp5DcgNlkva1W7uzjxwvt3SBffmNWAJA9Qg"></script>
Confirmed, did a same thing some time ago.
@etatuev @Flood Hi, I added @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" but still it doesn't seem to append version. I'm using .net core 3.1.2. Is there anything I'm missing?