En lugar de descargar el PDF, ¿cómo forzar que el PDF se abra/visualice solo en el navegador?

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.