My app generates PDFs for user consumption. The \"Content-Disposition\" http header is set as mentioned here. This is set to \"inline; filename=foo.pdf\", which should be
You could always have two links. One that opens the document inside the browser, and another to download it (using an incorrect content type). This is what Gmail does.