Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Prevent Browsers from Caching CSS Files?

Tags:

When I make a page, link it to a CSS file, and open it in a browser, it works fine. But if a make a change and refresh the page again between very short time periods, the change is not reflected. But after sometime, when i refresh the page again, the changes appear.

So, somehow the browser keeps the CSS file cached and expires it after sometime. How to make the browser cache no CSS or HTML file. It would be better if i can block it on a particular domain.

I'm on Ubuntu, using Chrome and Firefox, trying to prevent browsers from caching CSS files on 'localhost'... How to do it...

Thanks...