Package: mime-support Version: 3.62 Debian GNU/Linux Sid on x86-64
Most recent web browsers support JavaScript modules (their file extension is usually .mjs). See https://developers.google.com/web/fundamentals/primers/modules The conventional MIME type should be text/javascript for .mjs files. The following patch to /etc/mime.types (unchanged from Debian/Sid) *** /tmp/mime.types 2019-04-17 17:26:30.209742301 +0200 --- /etc/mime.types 2019-04-17 17:27:11.857907750 +0200 *************** *** 741,746 **** --- 741,747 ---- text/h323 323 text/html html htm shtml text/iuls uls + text/javascript mjs text/mathml mml text/markdown md markdown text/parityfec should solve that issue. Additional context: I am developping Bismon, a GPLv3+ program on http://github.com/bstarynk/bismon that is not packaged under Debian. Bismon uses the libonion library to serve HTTP (so it is a specialized web server). The libonion library is dual licensed (GPLv2+ / Apache2) and available on https://github.com/davidmoreno/onion (that libonion library BTW is not yet packaged on Debian, and I wish it would be. Its github provides some debian things BTW). That libonion is capable of serving static files. It uses /etc/mime.types to guess the Content-Type (in HTTP parlance) of such a file. Bismon is serving JavaScript modules so it needs that entry. Respectful regards. Please ask me any additional information. Cheers -- Basile STARYNKEVITCH == http://starynkevitch.net/Basile opinions are mine only - les opinions sont seulement miennes Bourg La Reine, France <bas...@starynkevitch.net>