-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Change the tag helpers FileVersion
property to something clearer
#2540
Comments
@DamianEdwards thoughts? |
Sure |
Any objection to me tackling this one on the weekend? |
Yeah that would be great. Let's settle on a name. Here are a few ideas:
I do kind of like my original suggestion of Thoughts? |
I can live with AppendVersion. I also like AddFileVersion. |
I like AppendVersion |
Is this about just the property name? Note that's irrelevant in every scenario except unit testing. The attribute name (what users see in the Razor source) is currently If we're going to change the attribute as well, would the name there be |
Yup. |
@dougbu yes it's just the property name and yes we'd rename the tag helper attribute name. Sounds like everyone wants to go with |
👍 |
…e busting FileVersion property renamed to AppendVersion in ImageTagHelper, LinkTagHelper and ScriptTagHelper. asp-file-version attribute renamed to asp-append-version. Resolves issue #2540
The web app template in Visual Studio still uses |
/cc @rustd |
I get a 404 on that link; is it a private repo? |
Yeah, sorry about that. Removing the link to avoid further confusion. |
We have a few tag helpers (
Link
,Script
, and the upcomingImage
) that have aFileVersion
property that indicates whether to add a "version" to the URL to help with cache busting.The property name is a bit confusing: it looks like it is a file version, as opposed to saying whether to append a file version.
I recommend changing the property to be
AppendVersion
or similar because that'll be a lot clearer about what it does.The text was updated successfully, but these errors were encountered: