Open paulosalvatore opened 2 years ago
I am trying to revive this question as I face the same problem. Anyone?
+1 this issue in 2023
For anyone still having this problem, Go to File -> Build Settings -> Player Settings (in the bottom left) -> Under Player (Left side) -> WebGL Settings (Html 5 Logo) -> Publishing Settings and enable Decompression Fallback and then rebuild and send to github
Building WebGL and deploying to GitHub Pages isn't working because gzip compression is enabled.
Tried to run your gh-pages branch from https://yanniboi.github.io/game-ci-test/ and console throws the following error.
I think we need a server configuration in order to make gzip compression work from GH Pages by adding
Content-Encoding: gzip
to.gz
files.This recent docs link shows code samples to do that, but I'm not sure it is supported for GH Pages. https://docs.unity3d.com/2021.2/Documentation/Manual/webgl-server-configuration-code-samples.html
Any ideas on how to make gzip compression work with GH Pages and Unity WebGL?
Thanks in advance.