Hello there,
After upgrading to PDFJS Express 8.4.0 we noticed that our API start receiving an extra HEAD call when loading documents via documentViewer.loadDocument.
Is there an option that we can pass to the function to disable that or any other work-around?
Ma I know if you’re loading from an extensionless URL or not? As the HEAD request is a request we make to determine the file type based on the mime-type header if there was no extension in the URL
Yes, the url we use does not include the extension, however after making changes and adding extension to that call I still observe the error in the console. Do I need to send the request with a reserved key or some other trick?
where pdfUrl doesn’t have the filename nor extension.
When I pass document url as https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf works fine and loads the document without extra head call. However, https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf will make an extra head call and display error.