Open Flood opened 7 years ago
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?
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>