I have some .rb (Ruby script) files that I link to on my website.
By default, the browser just downloads them to the "Downloads" folder, as it does zip files.
I want the browser to treat it as text, so the Ruby script will show within the browser.
If I do this the normal way however, it does indeed show up in the browser, but the problem is that when the user does a "right-click save as" on the file, the downloaded file gets appended with .txt, such as
Can this .txt extension be avoided with nginx settings?