除非清除缓存,否则 Google chrome css 不会更新 [英] Google chrome css doesn't update unless clear cache

查看:31
本文介绍了除非清除缓存,否则 Google chrome css 不会更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的本地服务器上工作,但如果我想查看 css 规则的变化,我必须每次都清除缓存.

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. 打开DevTools
  2. 打开Settings(右下角或使用F1快捷键)
  3. 检查禁用缓存(DevTools打开时)
  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#一般

这篇关于除非清除缓存,否则 Google chrome css 不会更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆