What am I missing here??? For some reason, anytime I reference a .png from my application.css file I get prompted for credentials. BUT, I can reference .gifs, .jpegs, etc... from my images directory no problem.
Routes are set up right now like this ...
public static void RegisterRoutesTo(RouteCollection routes) {
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("elmah.axd");
routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
routes.MapRoute(
"Default", "",
new { controller = "Home", action = "Index"} // Parameter defaults
);
routes.MapRoute(
"Session", "{action}",
new { controller = "Session" },
new { action = "(login|logout|register)" }
);
routes.MapRoute("CatchAll", "{*catchall}",
new { controller = "Error", action = "NotFound" });
}
In my application.css I have this:
.iconLocationLarge { background-image: url(../images/icon_vcarea_48x48.png) !important;}
.iconVCLarge { background-image: url(../images/tb-btn-sprite.gif) !important;}
The Problem: I get prompted to authenticate again if I use a .png ... BUT not with the .gif. Why???