Avonelle's Tech Blog

Go Back

ASP.NET 4.5 Optimization–Don’t forget authorization

I’m trying to take advantage of some new features in ASP.NET 4.5. One cool new feature allows you to easily bundle and minify CSS and javascript files to reduce page load times. I’ve been having trouble getting this to work, however.

It turns out the problem was that the path I generated for my CSS bundle wasn’t authorized. So if the user wasn’t logged in, they got a page without any CSS. Oops.

A quick <location> section in my web.config solved that.

Posted by Avonelle on Saturday, November 17, 2012.

Facebook Twitter