Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google chrome css doesn't update unless clear cache

I'm trying to work in my local server but I have to clear my cache every time if I want to see changes on the css rules.

There is any way to control Google Chrome cache?

like image 871
Marchy Avatar asked Nov 30 '13 12:11

Marchy


People also ask

How do you refresh CSS in Chrome?

For Windows in Chrome or Edge, the keyboard shortcut Ctrl + F5 (or Ctrl + Reload) refreshes. For Mac, hold Cmd-Shift-R or Shift-Reload.

How do I force a CSS refresh?

In Chrome, you can do a hard reload by opening the console (F12 key) and then right-clicking on the reload button to get a menu with additional reload options.

Do CSS files get cached?

Unless you've messed with your server, yes it's cached. All the browsers are supposed to handle it the same.

How do I stop Chrome from caching CSS?

Here's how... When you're in Google Chrome, click on View, then select Developer, then Developer Tools. Alternatively, you can right click on a page in Chrome, then click Inspect. Click on the Network tab, then check the box to Disable cache.


1 Answers

  1. Open DevTools
  2. Open Settings (bottom right or use F1 shortcut)
  3. Check Disable cache (while DevTools is open)

https://developers.google.com/chrome-developer-tools/docs/settings#general

like image 142
Vitalii Petrychuk Avatar answered Oct 13 '22 23:10

Vitalii Petrychuk