Tag Info

New answers tagged


The solution was rather special. The server had the default mime-type application/octet-stream for PDF files. After changing this to application/pdf everything worked fine. In the lighttpd configuration I achieved the change by adding this definition: mimetype.assign += ( ".pdf" => "application/pdf" )


See How to force files to open in browser instead of download (pdf)? which has an answer from ColinM that tells you exactly what the headers should be: To indicate to the browser that the file should be viewed in the browser: Content-Type: application/pdf Content-Disposition: inline; filename="filename.pdf" To have the file downloaded rather than ...

Top 50 recent answers are included