Replies: 5 comments 3 replies
-
WFM, since I cannot spot any difference between the two cases in quick testing (using both Mozilla Firefox 130 and Google Chrome 128).
Note that this uses a very simple web-server, which is not intended for production use, and that may perhaps be related here? Lines 17 to 18 in f6b356e |
Beta Was this translation helpful? Give feedback.
-
@Snuffleupagus just to confirm are you saying you are not seeing 200+ network requests in your own environment? I am serving the PDF from my own server not the webserver bundled with PDF.js |
Beta Was this translation helpful? Give feedback.
-
I'm not, when testing using https://github.com/mozilla/pdf.js/blob/master/test/webserver.mjs
Unfortunately it sounds like the problem might be with your server, which I don't think we can really help (much) with here. |
Beta Was this translation helpful? Give feedback.
-
@Snuffleupagus to rule out my server I added my domain to HOSTED_VIEWER_ORIGINS and I still get more requests from master compared to the one running on mozilla.github.io using the same PDF URL Is there a way to tell what commit is running on mozilla.github.io? |
Beta Was this translation helpful? Give feedback.
-
Note that https://mozilla.github.io/pdf.js/web/viewer.html simply runs on a server provided by GitHub, since the demo viewer is hosted at GitHub Pages.
Yes, both the version number and commit hash is logged in the console (note the parenthesis at the end):
Generally though, the demo viewer always contains a GENERIC-build of the latest |
Beta Was this translation helpful? Give feedback.
-
Attach (recommended) or Link to PDF file
https://d2tkmshiozsr4v.cloudfront.net/documents/files/000/041/350/original/ad41798557504b40d26e11b4f059c0945bb5ca14/750614main_NASA_FY_2014_Budget_Estimates-508.pdf#disableAutoFetch=true&disableStream=true
Web browser and its version
Google Chrome
Operating system and its version
Windows 11
PDF.js version
master
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
What is the expected behavior?
I am not sure if there is a bug in master or mozilla.github.io handling of linearized PDFs, mozilla.github.io seems to be working fine and it has less bytes over the wire which is preferred
What went wrong?
mozilla.github.io:
master:
Link to a viewer
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions