If it's OK or not is not so simple.
This is because it implies to two different standards. The HTML Specification and the HTTP Protocol Specification. So it has some greys. It depends upon how the user agent decides to take the response.
According to the http standard the response header indicates that the file should be treated as an attachment.
Howewer here:
https://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html
Also says: "If this header is used in a response with the disposition type "attachment" application/octet-stream content-type, the implied suggestion is that the user agent should not display the response, but directly enter a `save response as...' dialog."
UPDATE: RFC 6266, remarks that the restriction about the content-type being application/octet-stream is no longer needed
So your content type technically leaves that decision to the user agent (chrome in this case) to show the contents or not.
We are reaching just now some kind of balance between browsers, so to take a wisdom choice today I would recommend to do a cross browser testing.
Ideally this will be in your CI workflow with some tool like souce labs or your custom solution.
Another quick choice will be to upload that simple html example to some host like a free github repo and navigate the raw file from a page like this: https://www.browserling.com/
Which lets you navigate with different OS and browsers a specific url.