Add version to CSS and JS file path

Friday, March 24, 2023 11:36:55 PM
  • Posted: Wednesday, November 2, 2022 6:57 PM
  • 13
Hi,
As I know we could add asp-append-version="true" to css or js in head.cshtml to append the version of the file for cache busting.
I just wonder why it does not work with Grandnode ?

Thanks
0
  • Posted: Wednesday, November 2, 2022 8:21 PM
  • 13
Ok I think I fixed it.. for anyone need it so in head.cshtml it should be like this:
<link rel="stylesheet" type="text/css" href="~/bundles/style.min.css" asp-append-version="true">
0
back to top
Filters