Expected Behaviour
bundle exec jekyll serve doesn't provide the right Content-type for .wasm files. Currently, it gives application/octet-stream; charset=utf-8. It works on GitHub Pages though.
Current Behavior
Should be application/wasm.
I checked mime-db and webrick, they both added support for the WebAssembly MIME type. However, simply updating lib/jekyll.mime.types (via script/vendor-mimes) doesn't appear to be enough, because the Content-type then becomes application/wasm; charset=utf-8, which doesn't work with streaming:
Note: extra parameters are not allowed, including the empty application/wasm;.
https://webassembly.github.io/spec/web-api/index.html#streaming-modules
Expected Behaviour
bundle exec jekyll servedoesn't provide the right Content-type for.wasmfiles. Currently, it givesapplication/octet-stream; charset=utf-8. It works on GitHub Pages though.Current Behavior
Should be
application/wasm.I checked mime-db and webrick, they both added support for the WebAssembly MIME type. However, simply updating
lib/jekyll.mime.types(viascript/vendor-mimes) doesn't appear to be enough, because the Content-type then becomesapplication/wasm; charset=utf-8, which doesn't work with streaming: