最近发现我的
Chrome
和新版edge
访问
网页特别慢,每每要等好久,甚至还不如普通的edge了,然后就去网上找了两种可能有效的方法,第一个是我自己试过的,感觉有用,第二个是知乎点赞比较高的,作为记录,下次要用就来看看
在
Chrome
浏览器中按下F5或 Ctrl+F5 都
没
用,
Chrome
总是会强制使用页面
缓存
进行
刷新
,如何不使用页面
缓存
进行
刷新
?
Chrome
官方推荐使用如下快捷键,就可以不使用页面
缓存
进行
刷新
Windows和Linux操作系统: Shift+F5 或 Ctrl+Shift+R
Mac OS: Cmd+Shft+R
如果上面方法
没
有效果,可以按下F12(Windows) 或 Cmd+O...
# 创建
Chrome
浏览器实例
chrome
_options = webdriver.
Chrome
Options()
chrome
_options.add_argument('--disable-gpu')
chrome
_options.add_argument('--no-sandbox')
chrome
_options.add_argument('--disable-dev-shm-usage')
chrome
_options.add_argument('--disable-extensions')
chrome
_options.add_argument('--disable-infobars')
chrome
_options.add_argument('--disable-popup-blocking')
chrome
_options.add_argument('--start-maximized')
chrome
_options.add_argument('--incognito')
chrome
_options.add_argument('--disable-blink-features=AutomationControlled')
chrome
_options.add_argument('--disable-extensions')
chrome
_options.add_argument('--disable-plugins-discovery')
chrome
_options.add_argument('--disable-extensions-file-access-check')
chrome
_options.add_argument('--disable-web-security')
chrome
_options.add_argument('--disable-extensions-http-throttling')
chrome
_options.add_argument('--disable-extensions-suggestions-service')
chrome
_options.add_argument('--disable-extensions-clipboard')
chrome
_options.add_argument('--disable-extensions-signin-promo')
chrome
_options.add_argument('--disable-extensions-remote-install')
chrome
_options.add_argument('--disable-extensions-install-verification')
chrome
_options.add_argument('--disable-extensions-downloads')
chrome
_options.add_argument('--disable-extensions-geolocation-api')
chrome
_options.add_argument('--disable-extensions-geolocation')
chrome
_options.add_argument('--disable-extensions-background-fetches')
chrome
_options.add_argument('--disable-extensions-background-networking')
chrome
_options.add_argument('--disable-extensions-auto-update')
chrome
_options.add_argument('--disable-extensions-file-access')
chrome
_options.add_argument('--disable-extensions-file-detection')
chrome
_options.add_argument('--disable-extensions-file-access-check')
chrome
_options.add_argument('--disable-extensions-logging')
chrome
_options.add_argument('--disable-extensions-logging-redirect')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-append')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-append')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stderr-to-file-overwrite-append-quiet-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout')
chrome
_options.add_argument('--disable-extensions-logging-redirect-stdout-to-file-overwrite-append-quiet-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr-stdout-stderr')
chrome
_options.add_argument('--