Public link to view file in browser

If you make a public link with ?raw=1, you can download a file.
Is it an option to see the file in the browser ?
For example with a publc link of a html file, i would like to see the html’s page rendered.
With a pdf, i would like to directly see the pdf with the pdf reader of firefox.

Thanks

matteli