CSS not updated during debugging ASP.NET MVC application

Hemant picture Hemant · Jul 16, 2009 · Viewed 29.2k times · Source

I am working on a test application based on ASP.NET MVC. I am new to CSS stuff so I am learning that as well.

I have created a master page called "new.master" and created a new css "new.css". I am calling the view from controller as:

return View ("About", "new");

What I am doing is that I am frequently updating the css and master page. So I run the application in debug mode frequently. After sometime I stop seeing the effect of changes in css. When I "view source" in chrome and check the css, it shows an old version.

When I change the name of both master page and css, I start to receive updated views but that works for sometime and then again I stop getting the CSS updates. Have you faced this problem? How can I fix it? (Its terribly annoying!)

Answer

blu picture blu · Jul 16, 2009

Your browser is caching the css. If you force a refresh with F5 that should display any changes.