The web application is .Net 4.0 and is part Web Form's, part MVC. Rather than accessing the styles directly, the site uses an handler. Here is the real link:
<link href="@Url.Content("~/Styles/CssManager.ashx?s=StyleSheetName")" rel="stylesheet" type="text/css" />
<link href="~/Styles/CssManager.ashx?s=StyleSheetName" rel="stylesheet" type="text/css" />
Ideally I would like to use this URL:
<link href="@Url.Content("~/Styles/StyleSheetName.css")" rel="stylesheet" type="text/css" />
<link href="~/Styles/StyleSheetName.css" rel="stylesheet" type="text/css" />
The main reason is so the browser will catch the page. Can this be done by adding a route to the RouteCollection or must one go to IIS? I am trying to avoid the later, fore this is an intranet application we sell to our customers, who often know little about this stuff, so I am trying to keep it as simple as possible for them.
Q1: am I replacing this with an action?
A1: I had not thought of that, is it an option? (I updated the examples to be both web forms and mvc.