Add version to CSS and JS file path

Thursday, December 26, 2024 9:23:34 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
  • Posted: Tuesday, February 13, 2024 8:05 AM
  • 1
I have tried adding the asp-append-version="true" in our plugin's folder view (which is having areas). Still it's not working. Anything specific changes am i missing?
0
back to top
Filters