Do Netlify Edge Functions support the Compression Streams API?

if it’s not already available ( I couldn’t see it in docs) I’d like to request native support for the Compression Streams API in Netlify Edge Functions.

Use Cases

  • File Processing or Streaming: Some sites might stream large JSON or CSV files to clients. Being able to compress streams on the edge without additional server overhead would be a big win.
  • Minimized URL size: Some sites might use query parameters to encode data. Since web browsers impose limits on URL size, it may be more suitable to compress the data before adding it to the query parameters.

It seems to be available since Deno 1.19. Netlify currently uses Deno 1.45 or 1.46 if I recall correctly, so it should be available already. Did it not work for you?

That’s good news. I haven’t tested it. It just wasn’t listed in the docs: Edge Functions API | Netlify Docs