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)