最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

compression - Can I use `brotliCompressSync` for `Transfer-Encoding: chunked` response in Node.js? - Stack Overflow

programmeradmin0浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论