Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Mime type for Web Assembly

Maxim Dounin
December 03, 2019 08:20AM
Hello!

On Fri, Nov 29, 2019 at 09:27:46PM +0000, Chris Couzens wrote:

> # HG changeset patch
> # User Chris Couzens <ccouzens@gmail.com>
> # Date 1575032353 0
> # Fri Nov 29 12:59:13 2019 +0000
> # Node ID d826b28f25157901dff4a010cca180a0d13e7c35
> # Parent d13eddd9e2529b4bc30dc00aad959bd10ced4c33
> Mime.types: Add Web Assembly
>
> Web assembly is a web standard and so nginx should support hosting
> it by default.
>
> Not serving the correct mime type causes standard compliant browsers
> to reject it.
>
> https://www.w3.org/TR/wasm-web-api-1/#streaming-modules
>
> > If the Response is not CORS-same-origin, does not represent an ok
> > status, or does not match the `application/wasm` MIME type, the
> > returned promise will be rejected with a TypeError;
>
> diff -r d13eddd9e252 -r d826b28f2515 conf/mime.types
> --- a/conf/mime.types Tue Nov 19 17:18:58 2019 +0300
> +++ b/conf/mime.types Fri Nov 29 12:59:13 2019 +0000
> @@ -8,6 +8,7 @@
> application/javascript js;
> application/atom+xml atom;
> application/rss+xml rss;
> + application/wasm wasm;
>
> text/mathml mml;
> text/plain txt;

Please see https://trac.nginx.org/nginx/ticket/1606 for detailed
comments about adding application/wasm MIME type.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Mime type for Web Assembly

Chris Couzens 323 November 29, 2019 04:30PM

Re: [PATCH] Mime type for Web Assembly

Maxim Dounin 133 December 03, 2019 08:20AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready