What makes you think there's no standard for compression? WebSockets have a 
deflate extensions and gzip is support by nearly every browser that you can 
download.

On Friday, July 5, 2013 at 5:58 AM, Ryan Schmidt wrote:

> 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 (http://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] 
> (mailto:[email protected])
> To unsubscribe from this group, send email to
> [email protected] 
> (mailto:[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] 
> (mailto:[email protected]).
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 


-- 
-- 
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.


Reply via email to