Text/plain response chunking (streaming) does not work anymore because of the zstd

What is the name of the domain?

www.cookbook.dev

What is the issue you’re encountering

text/plain response chunking (streaming) does not work anymore because of the zstd setting being enforced

What steps have you taken to resolve the issue?

Issue was resolved by changing “content-type” from “text/plain” to “application/octet-stream” which is technically incorrect/too general for the plain text we output.

What are the steps to reproduce the issue?

  1. Use something like that to have a minimal web server returning chunked replies: Simple Node.js server which responds in chunked transfer encoding · GitHub
  2. Disable chrome://flags/#enable-zstd-content-encoding (for arc: arc://flags/#enable-zstd-content-encoding)
  3. Streaming of reply should be working
  4. Enable the flag back
  5. Streaming is not working
  6. Set content-type to something outside of list at: Content compression | Brotli
  7. Streaming is working again and zstd does not seem to be used anymore :slight_smile:
1 Like

Just to clarify, the issue is not reproducible on the provided domain name. However, it does affect responses streamed from the LLM. Also, it doesn’t seem to impact event-stream responses, although that hasn’t been specifically tested.

This topic was automatically closed after 15 days. New replies are no longer allowed.