MIME: mjs file extension
kaloyan.nikolov at 4dcoders.com
kaloyan.nikolov at 4dcoders.com
Thu Jan 11 20:09:11 UTC 2024
Hello everyone!
I am proposing to add the mjs file extension to the mime-types, because the lack of it causes some problems with apps (in this case Nextcloud) . I have reviewed the old discussion about the change from application/javascript to text/javascript and I understand the position of devs, but the lack of mjs do really require workarounds that sometimes aren't that straightforward for most docker users.
I tried sending the patch via hg but it sems gone, so adding it here to the bottom. It's my first contribution to Nginx, and I tried my best to follow the guidelines.
# HG changeset patch
# User Kaloyan Nikolov <kaloyan.nikolov at 4dcoders.com>
# Date 1704890349 -7200
# Wed Jan 10 14:39:09 2024 +0200
# Node ID 1d90e179232a3f2e8c6624a3aa955b9629019aa0
# Parent ee40e2b1d0833b46128a357fbc84c6e23be9be07
MIME: Add mjs file extension to mime-types.
Added Node.js mjs file extension inside the JavaScript mime-type section.
diff -r ee40e2b1d083 -r 1d90e179232a conf/mime.types
--- a/conf/mime.types Mon Dec 25 21:15:48 2023 +0400
+++ b/conf/mime.types Wed Jan 10 14:39:09 2024 +0200
@@ -5,7 +5,7 @@
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
- application/javascript js;
+ application/javascript js mjs;
application/atom+xml atom;
application/rss+xml rss;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20240111/bc98c1b0/attachment.htm>
More information about the nginx-devel
mailing list