Home / Posts tagged ".Net"

Updating cached CSS files in ASP.NET MVC 3 using dotLess

I had an issue with caching in an ASP.NET MVC3 web site that I was working on recently where users weren’t getting updates to CSS and image files. CSS is rather easy to resolve using the well-known query string hack, but doing the same for images referenced from within the CSS files is a bit trickier. Luckily the solution becomes trivial with a little help from dotLess.

Continue reading