I have GZIP encoding set on my origin server.
I am proxying through cloudflare to gather my files.
If I do it through HTTP, the content-encoding: gzip works, but if I do it through HTTPS, it doesn’t work… no content-encoding appears at all.
The configuration that I have on my htaccess is this one:
AddEncoding gzip .unityweb
The files that should have the content-encoding on are:
- WebGL build.wasm.code.unityweb
- WebGL build.wasm.framework.unityweb
- WebGL build.data.unityweb
I tested a direct connection to my origin server (ignoring cloudflare’s proxy) and it works on both HTTP and HTTPS.
Is there any special reason for this to be happening? Any hint on how to make the encoding work on HTTPS as well?