Skip to content

Commit 82afbb5

Browse files
FloodMarkPieszak
authored andcommitted
fix(cache): add cache busting to js files
This fix makes the cache busting work. When using asp-append-version="true" in Index.cshtml like this: <script src="~/dist/vendor.js" asp-append-version="true"></script> It will turn that into: <script src="~/dist/vendor.js?v=37182361827361" ></script> When you publish.
1 parent 3269cf0 commit 82afbb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Views/_ViewImports.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
@using AspCoreServer
22
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
3+
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"

0 commit comments

Comments
 (0)