The cause of your problem is really obvious, but hard to solve. When you open the notKey link
https:
the browser receives the .pdf extension at the end of the link and tries to download it. But when you have additional query parameters, your link does not end with .pdf, and this can cause a problem.
It looks like your downloaded pdf file did not receive metadata for the content type. If during the download the checkbox is not selected Detect content types automatically , try setting the content type manually by adding metadata
content-type: application/pdf
Another idea is to make the browser think that the link ends in .pdf, so try downloading from this link:
https:
Kainax
source share