4

We all know browsers can receive compressed data with the right content-encoding header.

Can browsers also SEND compressed data and take care of doing either gzip or deflate compression?

EG: Lets say I have a large text body I want to send via a POST. Can the browser compress that for me automatically when I am using the fetch or XHR APIs?

Eugene
  • 2,946
  • 2
  • 26
  • 30
  • There are libraries to zip up stuff – epascarello Nov 22 '19 at 20:28
  • Does this answer your question? [Compressing HTTP Post Data sent from browser](https://stackoverflow.com/questions/13031968/compressing-http-post-data-sent-from-browser) – Kris Nov 27 '21 at 21:05

0 Answers0