# Do Netlify Edge Functions support the Compression Streams API?

**URL:** <https://answers.netlify.com/t/do-netlify-edge-functions-support-the-compression-streams-api/138559>\
**Category:** Features\
**Tags:** feature-request\
**Created:** [January 30, 2025, 10:07am UTC](https://answers.netlify.com/t/do-netlify-edge-functions-support-the-compression-streams-api/138559 "2025-01-30T10:07:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jake3](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jake3/32/51401_2.png) [@jake3](https://answers.netlify.com/u/jake3)\
**Post date:** [January 30, 2025, 10:07am UTC](https://answers.netlify.com/t/do-netlify-edge-functions-support-the-compression-streams-api/138559/1 "2025-01-30T10:07:15Z")

</div>

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](https://developer.mozilla.org/en-US/docs/Web/API/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.

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [February 1, 2025, 12:02pm UTC](https://answers.netlify.com/t/do-netlify-edge-functions-support-the-compression-streams-api/138559/2 "2025-02-01T12:02:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jake3](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jake3/32/51401_2.png) [@jake3](https://answers.netlify.com/u/jake3)\
**Post date:** [February 3, 2025, 10:15am UTC](https://answers.netlify.com/t/do-netlify-edge-functions-support-the-compression-streams-api/138559/3 "2025-02-03T10:15:58Z")

</div>

That’s good news. I haven’t tested it. It just wasn’t listed in the docs: [Edge Functions API | Netlify Docs](https://docs.netlify.com/edge-functions/api/#web-apis)

---

<div class="post-metadata">

**Author:** ![laura](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/laura/32/6274_2.png) [@laura](https://answers.netlify.com/u/laura)\
**Post date:** [February 14, 2025, 3:21pm UTC](https://answers.netlify.com/t/do-netlify-edge-functions-support-the-compression-streams-api/138559/4 "2025-02-14T15:21:03Z")

</div>

Thank you @jake3 ! I will see if we can get that added to our docs.
