Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open an url in Chrome without using the cache via command line

I use the command chrome --new-window htp://www.example.com/ to open a url, but the page is opened using the last saved in the cache.

Is there a way to open a URL from the command line forcing the loading ignoring the cache?

Thanks!

like image 239
TaoTao Avatar asked Sep 22 '12 14:09

TaoTao


2 Answers

try the following command:

/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 https://stackoverflow.com/questions/12544664/open-an-url-in-chrome-without-using-the-cache-via-command-line#12545236 %U &

That works for me in Chrome Version 54.0.2840.100 (64-bit) on Linux Mint Qiana

But it won't log me out of any sites unless I quit the browser first.

like image 190
ebcode Avatar answered Oct 13 '22 09:10

ebcode


Adding the switch --disable-application-cache should work. Starting it incognito (--incognito) might also work. See also here for more command line switches.

like image 45
wimh Avatar answered Oct 13 '22 09:10

wimh