Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

WebGL configuration issue

$
0
0
My game keeps displaying this error `HTTP Response Header "Content-Type" configured incorrectly on the server for file Build/My Game.wasm.gz , should be "application/wasm". Startup time performance will suffer.` I have a .httaccess file in the build folder of the game: RewriteEngine On # This configuration file should be uploaded to the server as "/Build/.htaccess" # This configuration has been tested with Unity 2020.1 builds, hosted on Apache/2.4 # NOTE: "mod_mime" Apache module must be enabled for this configuration to work. # The following lines are required for builds without decompression fallback, compressed with gzip RemoveType .gz AddEncoding gzip .gz AddType application/octet-stream .data.gz AddType application/wasm .wasm.gz AddType application/javascript .js.gz AddType application/octet-stream .symbols.json.gz # The following lines are required for builds without decompression fallback, compressed with Brotli RemoveType .br RemoveLanguage .br AddEncoding br .br AddType application/octet-stream .data.br AddType application/wasm .wasm.br AddType application/javascript .js.br AddType application/octet-stream .symbols.json.br # The following line improves loading performance for uncompressed builds AddType application/wasm .wasm # Uncomment the following line to improve loading performance for gzip-compressed builds with decompression fallback AddEncoding gzip .unityweb # Uncomment the following line to improve loading performance for brotli-compressed builds with decompression fallback # AddEncoding br .unityweb

Viewing all articles
Browse latest Browse all 2390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>