Hacker News new | ask | show | jobs
by nikcub 5093 days ago
No. It has to be sent as text/plain for Chrome to view the file if it is on a remote server. The MIME types that are opened in the browser instead of downloaded are hardcoded within the Chrome source.

Numerous feature requests have been submitted[1] to update this functionality and to provide a preferences pane for users to decide how they want different file types handled, but they have been ignored as this behavior is a design decision.

[1] http://code.google.com/p/chromium/issues/detail?id=118204&#3...