What is the current wisdom on compressing requests (not responses) in a web app to run in normal desktop and mobile browsers?
I tried socket.io again and from what I've read, sending and receiving binary data is problematic, and there's still no standard for compression, so there isn't any, which is bad. So now I'm looking at using AJAX to send a POST request. Clearly in that case the server can send a gzipped response, but I want the request body to be compressed too, because it might be large. I'm not concerned about the generic case when I don't know whether the server supports compression; I'm interested in the specific case of POSTing to my node.js app which, assuming I write it correctly, could handle it. Should I: * manually gzip (or in some other way compress) the data using client-side JavaScript before POSTing? if so is there a recommended library? * set a header or other flag in the POST request to indicate to the browser that it should compress it? * do nothing? do browsers automatically handle this? Thanks for your advice. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
