-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor/Wasm games with Brotli compression/decompression are broken. #1512
Comments
I updated the http request/response as captured by Firefox. I requested both 'blazor.boot.json' and 'blazor.boot.json.br':
There is a difference in the 'x-goog-stored-content' headers
blazor.boot.json.br:
The file I finally get from the fetch() method is the plaintext of 'blazor.boot.json' !
What I would expect is to receive the compressed brotli content of 'blazor.boot.json.br' in the response body. |
Thank you for the detailed report. Our old CDN company was bought out by Akamai and we had to migrate to their platform last week (Full migration completed on Nov 22). Unfortunately, the integration Akamai provided subtly (and no so subtly) failing us in many ways. I'll go through the configuration to see if I can identify differences in how automatic compression is happening. Just so you are aware, though, we do some funky stuff with the https://itch.io/docs/creators/html5#compression
https://github.com/itchio/zipserver/blob/master/zipserver/archive.go#L326 |
Any update on this issue? It's been a while since it was last posted and there's no activity... |
Recently html games that are written in Blazor/Wasm stopped working.
The reported game is https://kwyrky.itch.io/blazorwasmgame1
My own game has the same issue: https://nkast.itch.io/alienexterminator
Those games were written in KNI, a C# game framework, and make use of the decode.js library to uncompressed the *.br files generated by Blazor webassembly.
host-and-deploy webassembly-compression
The error occurs in this line where BrotliDecode(...) is called to decompress '_framework/blazor.boot.json.br'.
decode.js throws a '"Corrupted padding bits"'
Http-Request
Http-Response
The text was updated successfully, but these errors were encountered: