Google chrome css doesn't update unless clear

2020-02-07 17:21发布

问题:

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?

回答1:

  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



回答2:

CTRL+F5 : to refresh the page by clearing GG chrome cache.



回答3:

You can do any of the following options:-

  1. Install a Chrome Extension like Clear Cache to clear cache by clicking on icon.
  2. Use Incognito Mode and browser your website in incognito mode. Incognito mode won't disable cache clearly. Disabling cache completely may slow down your browsing experience.
  3. Use chrome's features like Hard Reload (Clear cache and hard reload). Read this stackoverflow post
  4. As @Vitaly mentioned, Use Developer Tool settings to disable cache completely.

Choose what fits you :)



回答4:

  1. Open up your Developer Tools then click the icon on the top right

  1. In settings --> preferences scroll down to find "Disable cache (while DevTools is open)" and click on the box to select the option.

If you are still having the problem, and the page works on other browsers, then the easy fix could be to just uninstall Google Chrome and do a fresh install of the latest version. I ran into this problem and it was the best fix instead of the headache of tracking down a complicated fix or outdated posts that no longer work. After you have Chrome reinstalled, repeat the steps above to disable cache.



回答5:

Shift-F5 to reload the page worked for me on Chrome 61.0.3163.100



回答6:

More tools > Developer Tools
Then right click the refresh button on the browser.
You will get three options. Select "Empty Cache and Hard Reload".

This will only impact the active tab.



回答7:

  1. Disable cache (while DevTools is open)
  2. Close Chrome Browser
  3. Clear Cache with Software CC Cleaner
  4. After that Open Chrome browser