Imagine this scenario: I have a considerable amount of data (greater than KB/MB) that needs to be transferred from an ajax request in JavaScript to a webpage in PHP. Would it be beneficial to compress the data using JS scripting before sending it to the server and then decompress it on my webpage, or does the Apache module handle this automatically with Content-Encoding:gzip?
Thank you.