WebGL build not working on local xampp even if deflate module is enabled. What did I miss?

Basically that, it should work, it doesn’t what could be?

ok, I made it work by changing in the player settings the compression to gzip. that brotli thing appears to be supported by no one so as usual unity place it as default to mess up with you. I want to put the game on itchio and they don’t use that thing. would be great because it packs the game from 18Mb to 14MB but whatever what can we do

What are you on about? Unity explain and give examples of the configuration needed for a webserver to serve their files in a manner which makes it work

Many people publish on itch.io so if you cant that seems to be a you thing. Now, while i have never done it because i have a webserver and dont need to (and have done the config on it) given how many people succeed i an sure itch.io has explained what they support and dont.

did you tried brotli on xampp? if not then what are you on about?

you have to configure it to work with unity… did you do that?

yes i did it, I had already followed the setups from that page before you have post it, and I found that the brotli compression is not widely supported at the moment. So it doesn’t work with the brotli compression it works with gzip compression witch the only one that itchio accepts. brotli compression is better by 30% but doesn’t work, can you understand that or we are talking in circles?

you have you be a smartass and not pay attention and keep insisting just by reading some old unity setup instructions from years ago that you have not tried yourself.

Xampp is apache, and brotii works fine with apache my webserver in fact is apache, and just fine with chome, edge, firefox, safari… So, the original issue here your statement of “it doesnt work” doesnt make any sense. (and yes I used xampp in the past, i just dont currently)

it worked for you in the past because the compression in unity was set to gzip you just never noticed

no, its working today, with brotti…

nah, stop lying

I dont know why you feel i must be wrong, but here, take

one apache server, serving brotti, and works…

that is not local xampp bro

really, maybe you should start reading my posts again

local xampp, itchio,

not your custom server with brotli enabled,

this is not about brotli NOT working AT ALL. maaan some people

local xampp is made of apache… its the same stuff…

perhaps rather than insulting the 1 person whos tried to encourage you, you could bother with what errors you get, what exactly you did, any of it.

PS due to your rudeness, for which you shoudl apologise BTW

i downloaded xampp, I configured it

heres the source showikng br.


heres chrome

for when Im sure you’ll claim its not xampp

Oh and heres the folder structure

heres edge

So… I’ll wait on that apology shall I?

so why is that, you disabled the https why? to make it work?

it did not worked normally yeah?

man

where did you read I disabled https?? all urls are https…

as for “did not work normally” … it is a requirement for brotti to be https, so, once again, I am at a loss, you just seem to be raging and claiming the world is all wrong but you, but you havent given any thing

if is a requirement to have brotli on https why your previous screen showed the unsecured mode?

I tell you why, because you are fixing this on the way but you still want to appear like it always worked for you all the time. you have used the decompression fallback option without mention it.

anyway for future people reading this because this guy did not posted a single indication on how to have the xampp configured while bragging that he knows how to configure it to work with brotli, I will do it, I figured this out in the end not thanks to this guy or unity old articles about this

in xamp you need to open the “httpd.conf” file in a text document, is located inside the folder apache/conf

then you need to find the lines

#LoadModule brotli_module modules/mod_brotli.so

and

#LoadModule deflate_module modules/mod_deflate.so

then remove the # character.

past unity help stuff you find on net talks only about the second line so if you don’t know that the other line with the brotli exist, then it will not work

then at the end of the conf file paste this code

<Directory “E:/xampp/htdocs”>

RemoveType .gz
AddEncoding gzip .gz
#AddType application/octet-stream .data.gz
AddType application/gzip .data.gz
AddType application/wasm .wasm.gz
AddType application/javascript .js.gz
AddType application/octet-stream .symbols.json.gz

RemoveType .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

Preformatted text

then finally change the E:/xampp/htdocs line to point to where you have you xampp htdocs folder installed.

you can place the webgl files inside subfolders of this httdocs folder and access it by folder name in the browser

thanks for nothing anyway bro.

It is not unsecured. It is that i dont have a public ssl key. Its a private self signed one.

You are just rude for the sake of it