Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS not updated during debugging ASP.NET MVC application

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!)

like image 915
Hemant Avatar asked Jul 16 '09 13:07

Hemant


People also ask

Why are my CSS changes not reflecting?

Browser Cache If you are adding/modifying in-line CSS or JavaScript and not seeing the changes reflected in the HTML source, the page is likely being cached. The solution may be to purge the WordPress object cache, which stores our page caching (Batcache) renders.

How do I update my CSS?

If your site is not live yet, and you just want to update the stylesheet at your pleased intervals, then use this: Ctrl + F5 . On Mac OS (in Chrome) use: Cmd + Shift + R . This will force your browser to reload and refresh all the resources related to the website's page.


1 Answers

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

like image 161
blu Avatar answered Oct 21 '22 04:10

blu