-
I’m trying to run a WebAssembly sample from MDN. It loads a raw .wasm file but runs into this error: Failed to execute ‘compile’ on ‘WebAssembly’: Incorrect response MIME type. Expected ‘application/wasm’. Here’s the fiddle: http://jsfiddle.net/dandv/oxt1476q/1/ Any chance for GitHub to set the MIME type correctly for .wasm files? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for reaching out about this! In short, it’s not possible to manually assign a content-type for files on GitHub Pages. GitHub Pages supports more than 750 MIME types across 1,000s of file extensions. The list of supported MIME types is generated from the mime-db project, which aggregates MIME types from the Apache and Nginx projects as well as the official IANA list of internet content types. If you wish to contribute a new mime type to mime-db please see the contributing instructions here. https://github.com/jshttp/mime-db#adding-custom-media-types I hope this helps! |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out about this! In short, it’s not possible to manually assign a content-type for files on GitHub Pages.
GitHub Pages supports more than 750 MIME types across 1,000s of file extensions. The list of supported MIME types is generated from the mime-db project, which aggregates MIME types from the Apache and Nginx projects as well as the official IANA list of internet content types.
If you wish to contribute a new mime type to mime-db please see the contributing instructions here.
https://github.com/jshttp/mime-db#adding-custom-media-types
I hope this helps!