The correct type is application/pdf
for PDF, not application/force-download
. This looks like a hack for some legacy browsers. Always use the correct mimetype if you can.
If you have control over the server code:
header("Content-Disposition", "attachment; filename=myfilename.myextension");
header("Content-Disposition", "inline; filename=myfilename.myextension");
No control over the server code:
NOTE: I prefer setting the filename on the server side as you may have more information and can use common code.