A response from IBM:
Hi Aaron,
I had a chance to discuss this PMR with my colleagues and was able to find out some more information for you, please see below:
Application/javascript is a supported content type in RTC 6.0.2 so it should not show as unsupported MIME type warning message for javascript files. It should be noted that a file name having extention as .js can have any MIME type like plain/text, application/javascript or application/unknown etc. We believe that the javascript file that you're using has application/unknown as MIME type and that is why it's showing an unsupported MIME type warning message.
We ran a test in RTC 6.0.2 with two javascript files each having 10K lines. One of the javascript file was an application/javascript MIME type while other was of application/unknown MIME type. Both the files took 2-3 seconds to load.
Lastly, the following is a list of supported MIME types for various RTC releases:
For 6.0.2, 6.0.3 and 6.0.4 :
"text/x-java-source";
"application/xml";
"application/javascript";
"text/html";
"text/x-csharp";
"text/x-csrc";
"text/x-c++src";
For 6.0.5, (the list is picked up from Orion V15 supported MIME Type)
"text/plain"
"application/javascript"
"application/vnd.coffeescript",
"text/jsx",
"text/html",
"text/css",
"text/x-scss",
"text/x-less",
"application/json",
"application/sql",
"application/xml",
"application/x-ejs",
"text/x-java-source",
"application/x-jsp",
"application/x-sh",
"text/x-jade",
"text/x-python",
"text/x-ruby",
"text/x-go",
"text/x-launch",
"text/x-objective-c",
"text/x-php",
"text/x-properties"
"text/x-smarty",
"text/x-swift",
"text/x-typescript",
"text/x-markdown",
"text/x-yaml",
"text/conf",
"application/browser-renderable",
"application/pdf",
"application/octet-stream",
"application/zip",
"text/x-arduino",
"text/x-csrc",
"text/x-csharp",
"text/x-cshtml",
"text/x-dockerfile",
"text/x-erlang",
"text/x-haml",
"text/x-lua",
"application/xquery",
"text/x-vb",
"text/x-vbhtml",
"image/gif",
"image/jpeg",
"image/ico",
"image/png",
"image/tiff",
"image/svg",
I hope this answers your question, please let me know how you'd like to proceed with this PMR.
Comments
The exact message we get in the web client when doing a code review of java script files is: