So you can force a download by using Content-Disposition: attachment
Content-Disposition: attachment
Content-Disposition: inline is the default and should display in the brows
Content-Disposition: inline
You also need to set the Content-Type correctly. The browser will check the content-type value, and if it isn't something it knows how to display it will always just download the file.
Content-Type