aspnetcore-angular-universal icon indicating copy to clipboard operation
aspnetcore-angular-universal copied to clipboard

asp-append-version not working

Open Flood opened this issue 8 years ago • 2 comments

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>

Flood avatar Nov 07 '17 09:11 Flood

Confirmed, did a same thing some time ago.

etatuev avatar Nov 08 '17 15:11 etatuev

@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?

pd-xpediator avatar Sep 22 '20 05:09 pd-xpediator