Jun 05, 2012 12:02 PM|imran_ku07|LINK
Let I try to explain you in upper level.
Every request in ASP.NET is manged through http handlers(for example, static handler, page handler, ashx handler, etc). There is a special HTTP Module called UrlRoutingModule which matches the routes in global.asax. If a route is match then it will chnage
the current http handler using HttpContext.RemapHandler method otherwise normal ASP.NET flow will continue. Similarly System.Web.Optimization insert a BundleModule http module which try to match a binding. If a match is found found then it will select the
BundleHandler as http handler using HttpContext.RemapHandler method. Internally System.Web.Optimization will leave a match if HostingEnvironment.VirtualPathProvider.FileExists(path) is true or HostingEnvironment.VirtualPathProvider.DirectoryExists(path) is
I am personlly suggest you to use a prefix in bundles path like,
So that no confliction will occur between bundles and routes. See this controller action,
public class ContentController : Controller
// GET: /Content/
public ActionResult css()
Clearly the default route with /content/css path matches the css action but the bundling framework will override the http handler.