Being able to have custom headers for compressed files. #105
Unanswered
CSEliot
asked this question in
Help / Questions
Replies: 1 comment
-
You should be able to add your custom header using a expressjs like middleware in your config.js file. See #76 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Anything compressed (GZip, Brotli) needs the webserver to have in it's header a specific line. See error from firefox:
Unable to parse Build/MJ2CG.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: gzip" present. Check browser Console and Devtools Network tab to debug.
Need to be able to add code like this:
https://docs.unity3d.com/2020.1/Documentation/Manual/webgl-server-configuration-code-samples.html
or add this (content encoding headers):
https://docs.unity3d.com/2020.1/Documentation/Manual/webgl-deploying.html
Thanks in advance for your time!
Beta Was this translation helpful? Give feedback.
All reactions