Precompressed Gzip files not working

I have a Unity WebGL build I am attempting to host on Cloudflare. Unity compresses some of the files with gzip. I uploaded the build files into a GitHub repo and connected it to a Page. When viewing the page, I am told it could not interpret the compressed files. This is my _header file.
/Build/*.data.gz
Content-Encoding: gzip

/Build/*.wasm.gz
Content-Encoding: gzip
Content-Type: application/wasm

/Build/*.js.gz
Content-Encoding: gzip
Content-Type: application/javascript

/Build/*.symbols.json.gz
Content-Encoding: gzip
Content-Type: application/octet-stream
/Build/*.data.gz
Content-Encoding: gzip

/Build/*.wasm.gz
Content-Encoding: gzip
Content-Type: application/wasm

/Build/*.js.gz
Content-Encoding: gzip
Content-Type: application/javascript

/Build/*.symbols.json.gz
Content-Encoding: gzip
Content-Type: application/octet-stream
Is there some other config I have to set? Maybe turn off Cloudflare's Brotli compression, because double compressing it might be interfering?
2 Replies
arwtsh
arwtshOP2w ago
bump
avovo_
avovo_3d ago
bump

Did you find this page helpful?