I'm trying to use webassembly streaming feature but it does not work.
I did follow the unity docs instruction of Server configuration for WebAssembly streaming.
https://docs.unity3d.com/2019.3/Documentation/Manual/Webgl-Server-configuration-for-WebAssembly-streaming.html
I'm using Unity 2019.2.20f1
In Unity player settings, I set the compression format as gzip and enabled WebAssembly streaming.
I added .htaccess file into the Build folder.
following is the contents of the .htaccess file
<IfModule mod_mime.c>
AddEncoding gzip .unityweb
AddType application/wasm .wasm
AddEncoding gzip .wasm
AddOutputFilterByType DEFLATE application/wasm
</IfModule>
and I also added
application/wasm wasm
to /etc/mime.type
But I'm getting this Error.
wasm streaming compile failed: CompileError: WebAssembly.instantiateStreaming(): expected magic word 00 61 73 6d, found 1f 8b 08 18 @+0
I did restart the service after setting up the needed modifications.
my webgl builds work perfectly without webassembly streaming feature.
Is there anyone who knows about this problem and what i'm doing wrong?