|
".js": "application/x-javascript", |
What did you do?
Serve javascript files with go. The application runs in a docker container based on golang:1-alpine
What did you expect to see?
Content-Type : application/javascript
What did you see instead?
Content-Type : application/x-javascript
Illustration did not fit in a playground : runnable example
relevant? rfc4329
As far as I can tell golang:1-alpine doesn't come with any registered mime types. This means that only the built in types are used for content type sniffing. application/javascript is not included in the built in types.
Should application/javascript be included and (separately) should application/x-javascript be removed?