Chrome sends two requests when downloading a PDF (and cancels one of them)

前端 未结 3 1970
梦谈多话
梦谈多话 2020-12-14 08:25

I noticed that whenever you download a PDF in Chrome, it consistently makes two requests, and then cancels one of them. This is causing the request to be registered twice in

3条回答
  •  心在旅途
    2020-12-14 08:54

    I had the same problem in an iframe. I turned of the PDF Viewer extension and the problem disappeared. I'm thinking the extension downloads the file twice. The first time to get the size, the second time to download with a progress bar (using the size gathered in the first request)

提交回复
热议问题