gpt4 book ai didi

google-chrome - "Content Download"在 Chrome 中非常慢,而不是在隐身或其他浏览器中

转载 作者:行者123 更新时间:2023-12-04 15:50:32 25 4
gpt4 key购买 nike

我有一个注销端点,它在 Chrome 中需要几秒钟才能解决(在生产中有时需要长达 30 秒),但在其他所有浏览器(Firefox、Safari...)中仅需要大约 100 毫秒 在新的 Chrome 隐身窗口中。
从 Chrome 本地针对临时数据库发出请求也能顺利运行。
检查网络中的计时选项卡,显示请求发送和等待的计时正常,但内容下载是花费大部分时间的地方。

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

  • slow content download
  • Network panel shows huge Content Download time for 304 response
  • Slow Content Download on Chrome

  • 这是请求:
    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;'

    它返回带有以下 header 的空响应:
    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 中的请求:

    Request in Firefox

    Chrome 隐身请求:

    Request in Chrome Incognito

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

    Request in Chrome

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

    最佳答案

    只有删除“Clear-Site-Data” header 的“缓存”选项才能解决问题。

    我也不知道为什么。

    关于google-chrome - "Content Download"在 Chrome 中非常慢,而不是在隐身或其他浏览器中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54025328/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com