http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Fails to serve Unity/Brotli

Open dakom opened this issue 2 years ago • 4 comments

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

  1. OS Type: OSX
  2. Node version: v16.13.1
  3. http-server version: v14.1.1

dakom avatar Dec 07 '22 08:12 dakom

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.

BaguetteEater avatar Jan 30 '23 10:01 BaguetteEater

This issue has been inactive for 180 days

github-actions[bot] avatar Jul 29 '23 12:07 github-actions[bot]

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'

cosmoburn avatar May 12 '24 00:05 cosmoburn