-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIME of .mjs
files
#2253
Comments
Hello, how do you serve these files? Could you provide an example route maybe? |
@AlexanderYastrebov Unfortunately I have no public route available. I stumbled across the issue with the new storybook version which uses |
Here is some more context regarding to updates to ECMAScript media types. |
If we are talking about ~$ grep mjs /usr/share/mime/globs2
50:application/javascript:*.mjs
~$ mkdir /tmp/skipper2253
~$ echo "This is an .mjs file" > /tmp/skipper2253/test.mjs
~$ bin/skipper -inline-routes='* -> static("/tmp/skipper2253") -> <shunt>'
~$ curl -v localhost:9090/test.mjs 2>&1 | grep Content-Type
< Content-Type: text/javascript; charset=utf-8 |
Actually |
See related golang/go#32351 |
Thank you for your fast response! |
Unfortunately skipper is serving
.mjs
files asapplication/octet-stream
instead ofapplication/javascript
. The MIME used to identify.mjs
files should be a web compatible JavaScript MIME Type.Does anyone has a workaround to set the correct
Content-Type
header for*.mjs
files with skipper in the meantime?The text was updated successfully, but these errors were encountered: