WASM served with incorrect MIME type when running locally with jekyll serve
@dennispan ya está trabajando en esto.
Desde el 22/6/2020.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
I'm trying to use a web assembly (wasm) module, but wasm modules must be served with the content type application/wasm, and when running bundle exec jekyll serve to test the site locally, they are instead served with the content type application/octet-stream used for unrecognized file types. As far as I can tell, this was fixed upstream in Webrick back in 2019, but the github-pages gem is using an outdated version of jekyll which is in turn using an outdated version of webrick that doesn't have the fix.
I tried pushing my changes to github and wasm modules are served with the correct MIME type on a live github pages site. I'm not sure why it works live and is broken locally when the entire point of the github-pages gem is to replicate the same configuration for local testing in order to avoid such issues, but it seems like this can at least be easily fixed by updating the dependencies of the gem.
- Lenguaje dominante
- Ruby
- Estrellas
- 1.9k
- Forks
- 361
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/pages-gem
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Error when building docker imageAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
-
index.htmlAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
Todos los issues de github/pages-gem
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
jetrockets/jet_ui#47 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
FreeCAD/homebrew-freecad#870 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Messages with a markdown image that has a relative or malformed URL throw TypeError: Invalid URLAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día