Reputation: 8452
suppose that I've a huge amount of data (>KB/MB) to transfer from an ajax request (JS) to a webpage (PHP), is it usefull to deflate data (by JS scripting) before send it to server and inflate it in my Webpage or the Apache module (Content-Encoding:gzip) do it by itself?
Thanks.
Upvotes: 3
Views: 905
Reputation: 8421
Content Compression offered by apache will only compress data sent from server to client.
For you to compress data that you are sending to the server would involve a lot of effort which i am not sure will be worth the effort.
you could try using a js data zip api like http://jszip.stuartk.co.uk/
Upvotes: 1