Web/ForgeTrust.Runnable.Web.RazorWire/TagHelpers/AutoAssetVersioningTagHelper.cs

AutoAssetVersioningTagHelper

Type

AutoAssetVersioningTagHelper

A TagHelper that automatically applies version hashing to script and link tags that reference local files, if the asp-append-version attribute is missing.
Method

IsLocal(string?)

Determines if the provided path is a local path suitable for versioning.
Relative paths (e.g. "css/site.css") are excluded because they are ambiguous without knowing the current request path context, which complicates server-side resolution. Use root-relative ('/') or app-relative ('~') paths for automatic versioning.