Downloading partial file on chrome
Tuesday, November 23, About Contact. Technical Knowledge Base Sharing Platform. 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 my Web app, which don't want.
Is there a way to get Chrome to only make one request for PDFs? I've researched this topic quite a bit now, and I have not found a sufficient answer.
Closely-related answers suggest that the problem is that Chrome is looking for a favicon, but the network tab shows that it is actually making the same request twice, and then canceling the second request. Below is a link to a random PDF file that I found through Google which when clicked should demonstrates the behavior. I would've posted a picture of my network tab in devtools but this is my first post on Stack Overflow, and the site is prohibiting me from uploading a picture.
The problem is that Chrome, when it loads an iframe that returns a PDF stream, writes an "embed" tag inside that iframe which again contains the same URL as the iframe. This triggers a request for that URL again, but Chrome immediately cancels it. I'm still trying to find a proper solution but as a partial "fix" for now you could have two options. I had the same problem in an iframe.
I turned of the PDF Viewer extension and the problem disappeared. Privacy Policy. Password recovery. Recover your password. Get help. Tech Legends. Note A community-sponsored advertisement-free tech blog.
Join the revolution of making the web ad-free by supporting me. Hello Vikash, Well, the chrome flags are a part of the experimental features. If the interrupted download isn't listed within the download manager, then you will need to use Method 2 to resume downloading the file. Chome seems to only allow resume for downloads within the current session.
If you restart Chrome, then it is unlikely that you can resume a download from a previous session. Step 3 : Select Resume to start downloading from where it file was left off. If the download manager of the default web browser doesn't have the partially downloaded file you want to resume, you will have to manually resume the download process.
Step 2 : Download and install WGet. Step 3 : Locate and open the partially downloaded file using Free File Viewers. Some browsers are better suited for resuming partial downloads than others. In any case, we've listed three browsers below that allow you to resume partial downloads either via a plugin, a partial file, or by using a combination of techniques.
As a web developer, if you need to further analyze the partial downloads that are occurring on your site you should always look to the logs for more information. The same goes for further analyzing partial or incomplete downloads via KeyCDN. If you require more information, enable our log forwarding feature to enable Syslog to receive your raw logs in real time.
0コメント