【问题标题】:"Content Download" extremely slow in Chrome, not in Incognito or other browsers“内容下载”在 Chrome 中非常慢,而不是在隐身或其他浏览器中
【发布时间】:2019-01-03 15:32:57
【问题描述】:

我有一个注销端点,它在 Chrome 中需要几秒钟才能解决(有时在生产中长达 30 秒),但在所有其他浏览器(Firefox、Safari ......)中只需要大约 100 毫秒 在新的 Chrome 隐身窗口中。 从 Chrome 本地向临时数据库发起请求也可以顺利运行。 检查网络中的 Timing 选项卡显示 Request sentWaiting 的时间是正常的,但 Content Download 是大部分时间都花在了。

我已尝试关闭所有扩展程序(并重新启动 Chrome)并尝试浏览 Chromium 错误板,但无济于事:

这是请求:

curl "https://XXX.XXX.com/deconnexion" \
     -H 'Authority: XXX.XXX.fr' \
     -H 'Pragma: no-cache' \
     -H 'Cache-Control: no-cache' \
     -H 'Upgrade-Insecure-Requests: 1' \
     -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' \
     -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' \
     -H 'Referer: https://XXX.XXX.fr/b' \
     -H 'Accept-Encoding: gzip, deflate, br' \
     -H 'Accept-Language: en-US,en;q=0.9,fr;q=0.8,es;q=0.7' \
     -H 'Cookie: __cfduid=XXX; cookie_consent=true;'

返回带有以下标头的空响应:

cache-control: no-cache
cf-ray: 49365c40589abd79-CDG
clear-site-data: "cache", "storage"
content-type: text/html; charset=utf-8
date: Thu, 03 Jan 2019 15:04:52 GMT
expect-ct: max-age=604800, report-uri="https://xxx.cloudflare.com/xxx/xxx/xxx"
location: https://xxx.xxx.fr/xxx/xxx
referrer-policy: strict-origin-when-cross-origin
server: cloudflare
set-cookie: path=/; secure; HttpOnly
status: 302
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-csrf-token: xxxx
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-request-id: xx-xx-xx-xx-xx
x-runtime: 0.017715
x-xss-protection: 1; mode=block

Firefox 中的请求:

Chrome 隐身请求:

Chrome 71 中的请求(版本 71.0.3578.98):

更新:删除“Clear-Site-Data”响应标头解决了问题,但我仍然不知道为什么...

【问题讨论】:

    标签: google-chrome


    【解决方案1】:

    仅删除“Clear-Site-Data”标头的“缓存”选项即可解决问题。

    我也不知道为什么。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-07-16
    • 1970-01-01
    • 1970-01-01
    • 2017-06-27
    • 2017-02-20
    • 2015-11-20
    • 1970-01-01
    相关资源
    最近更新 更多