MIME Type _headers help needed

I am trying to get a Unity WebGL build to deploy on pages and I can't seem to get the _headers file right I need the following files to be functional /Build/BUILD.data.gz /Build/BUILD.framework.js.gz /Build/BUILD.loader.js /Build/BUILD.wasm.gz I have tried messing around with the _headers file to no success My current _headers file looks like this:
/*.gz
Content-Encoding: gzip

/*.data.gz
Content-Type: application/octet-stream

/*.wasm.gz
Content-Type: application/wasm

/*.js
Content-Type: application/javascript

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

/*.data.gz
Content-Type: application/octet-stream

/*.wasm.gz
Content-Type: application/wasm

/*.js
Content-Type: application/javascript

/*.js.gz
Content-Type: application/javascript
I do get the following error message when trying to load the page though:
Unable to parse Build/BUILD.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.
Unable to parse Build/BUILD.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.
Any help would be useful. Thanks in advance
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server