Em vez de fazer o download do PDF, como forçar o PDF a abrir/ver no navegador apenas?

Inline PDF does not work for me on desktop either.

I’m partially successful displaying PDFs inline when adding them to FileHelper.inline_images

But then a parameter “inline=1” is needed:

This could be added in some theme-component (Inline PDF Previews).

I would like to learn a clean way to switch discourse to serve PDFs with content-disposition: inline using a plugin or a configuration option.