Reputation: 1352
I am playing around with compressing on Node.js server. While my streaming implementation of brotli-compression is working just fine, I can't get compression to work using brotliCompressSync
method. I see only first chunk in the server's response.
My guess is that brotliCompressSync
adds some meta info to each chunk of the response, so the browser gets confused. Am I right? Is there any method to use sync-version of brotli compression?
Upvotes: 1
Views: 52