通过命令行在不使用缓存的情况下在 Chrome 中打开一个 url

Tao*_*Tao 5 command-line google-chrome browser-cache

我使用命令chrome --new-window htp://www.example.com/打开一个 url,但页面是使用缓存中最后保存的打开的。

有没有办法从命令行打开 URL 强制加载忽略缓存?

谢谢!

wim*_*ica 5

添加开关--disable-application-cache应该可以工作。以隐身方式启动它 ( --incognito) 也可能有效。另请参阅此处了解更多命令行开关。


小智 5

尝试以下命令:

/usr/bin/google-chrome-stable --new-window --aggressive-cache-discard --disable-notifications --disable-remote-fonts --disable-reading-from-canvas --disable-remote-playback-api --disable-shared-workers --disable-voice-input --enable-aggressive-domstorage-flushing /sf/ask/878126511/#12545236 %U &
Run Code Online (Sandbox Code Playgroud)

在 Linux Mint Qiana上的Chrome 版本 54.0.2840.100(64 位)中对有用

但它不会让我退出任何网站,除非我先退出浏览器。