Style.Include stripping query string

Topics: Core, Writing themes
May 1, 2013 at 2:20 PM
When trying to do Style.Include("Site.css?rev=1") in the Layout.cshtml, the output only has Site.css and not the query string. We increment the query string when we push changes to Production to force the browser to download the latest version of the CSS. I have found that if I use RegisterLink(new LinkEntry { Type = "text/css", Rel = "stylesheet", Href = Href("../Styles/Site.css?rev=1") });
The link is inserted properly with the query string. Is this the best approach?
May 1, 2013 at 4:51 PM
If it works, it's better than the non-working alternative. ;)
Which is probably a bug.