如何在Chrome中为特定网站关闭缓存?

JnB*_*ymn 6 javascript caching google-chrome

我正在为名为www.example.com的网站开发Javascript,Chrome会不断缓存早期版本的代码.我可以不断清除缓存,但这已成为时间的延迟.还有其他选择吗?

use*_*857 17

如果您不想更改网页的代码.您只需在Google Chrome上打开开发人员工具即可.快捷方式:在Windows上按Ctrl + Shift + i.

你会在右下角找到一个可以带你进行设置的装备.检查"禁用缓存",你就可以了.


Nis*_*ish 13

我通常按​​:ctrl + shift + r清除缓存.我觉得最简单.

这也有效:

<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
Run Code Online (Sandbox Code Playgroud)


Rob*_*Rob 5

如果您使用隐身窗口进行调试 - 它没有缓存数据。简单,无需更改浏览器设置。