How to make Safari open all PDFs in-browser

pdfsafari

For the majority of PDFs I view in Safari, they are opened in-line, which is what I want. For example, these all open in Safari:

However, some PDFs, for reasons I have not been able to determine, are instead downloaded. For example, when I click on each of the following links, a PDF is immediately downloaded, instead of being displayed in-browser.

I suspect that the servers for the last two links are doing something like what is described in the StackOverflow question "force a pdf download automatically", but I'm not sure. I have already removed the last vestiges of Adobe's PDF reader, which I regret ever installing, including the internet plugin in the /Library/Internet Plugins directory.

How can I make sure that whenever Safari encounters a PDF, it is opened in the browser, and not downloaded?

Best Answer

As pointed out, the first three examples are direct links to the PDF files in question while the other two are controlled by a server script in the background.

There is nothing what you can do about it on your side since the server fully controls the distribution of documents in the two last example links you provided.