Data compression to reduce network bandwidth usage

Suppose I have a huge amount of data (> KB / MB) to transfer from an ajax request (JS) to a web page (PHP), is it useful to deflate data (using JS scripts) before sending it to the server and to inflate it on my web page or in the Apache module (Content-Encoding: gzip) do it yourself?

Thank.

+3
source share
1 answer

Content compression offered by apache will only compress data sent from the server to the client.

It will take a lot of effort to compress the data that you send to the server, and I'm not sure if it will be worth the effort.

js- zip api, http://jszip.stuartk.co.uk/

+1

Source: https://habr.com/ru/post/1768113/


All Articles