I'm wondering if there's an easy way to specify a CDN for all content that I reference through Url.Content in my views.
Something that I could configure in my Web.config file in a way similar to the following.
<cdn>
<add filetype="css" root="http://mycdn.mydomain.com/stylesheets/" />
<add filetype="js" root="http://myjscdn.mydomain.com/js/ />
</cdn>
Then, I could just have <%= Url.Content("~/Content/StyleSheets/What.css") %> and it would output http://mycdn.mydomain.com/stylesheets/Content/StyleSheets/What.css.
If nothing is available, I'll just do it myself via extension methods, but I was wondering if it was possible out of the box.