In version 6000.0.40f1, the game freezes when working with GZipStream.
This only happens in the release build, in the development build everything is fine. DeflateStream and BrotliStream also do not work.
On the current version 2022.3.56f1 everything works correctly.
As a workaround until the fix is available you can either disable “Decompression Fallback”(if thats work for you deployment target) or manually edit the .loader.js after a build:
You would need to remove these lines from the loader file:
Removing this chunk of code from .loader.js helped fix the problem for me.
(I noticed that the problem was when using “Decompression Fallback”, but I wanted to use it in the future to reduce the start load time)
Unity version 6000.1.0.b6. Brotli compression and “Decompression Fallback” on