New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't make two requests to download PDF #1907
Comments
This is expected. We cancel the original request in the extension and re-request in our code. Have you actually run into a pdf that is only downloadable once? I know it's possible (or the pdf served could be different on the second request) but I have yet to hear of anyone actually run into this. |
Yes, someone reached me in Berlin. Basically, the user have to pay to view the PDFs. That's why it's really only possible to request the PDF once. Why don't we listen to the data coming in the first time? |
I am facing the same issue. (see https://bugzilla.mozilla.org/show_bug.cgi?id=782217). |
Fixed by #1943 |
When we open a PDF, we make currently two requests to the server. You can easily see this when opening the web inspector tools. There are two GET requests to the PDF domain.
In most cases this is no problem, however sometimes the server allows to download the PDF only once. Then, when the second request happens, the PDF is no longer served and therefore the PDF is not loadable in PDF.JS.
The text was updated successfully, but these errors were encountered: