http-server
http-server copied to clipboard
Fails to serve Unity/Brotli
Exporting a WebGL build from unity and then running http-server -o --cors --brotli
I see Serve Brotli Files is true, but I get an error where files like Build/world.framework.js.br are not being served with Content-Encoding: br in the response header.
Ultimately this means Unity WebGL builds are not viewable with http-server
Environment Versions
- OS Type: OSX
- Node version:
v16.13.1 - http-server version:
v14.1.1
I'm having the same issue here on windows and trying to serve unity webgl files.
I tried to find a correct mimetype to put in with the option --mimetype but I have been unsuccesful so far.
But I think the way to make it work is this option to force the type on the brotli file.
This issue has been inactive for 180 days
yup, doesn't work for me either, says the flag is set to true but does not actually serve the files with 'Content-Encoding', 'br'