Closed deadlyfingers closed 8 years ago
We MUST turn this on. We are running over super constrained transports and it's a negotiation item anyway so if the client doesn't support it then nothing bad happens, we'll just default to not using GZIP.
@deadlyfingers @yaronyg there is already compression middleware out there https://github.com/expressjs/compression which is supported by the express organization
Also bodyparser middleware inflates deflated (compressed) bodies by default - https://github.com/expressjs/body-parser
Added compression node module to packages and app.js "The middleware will attempt to compress response bodies for all request that traverse through the middleware"
Will try verifying compression using Fiddler / Charles: https://www.telerik.com/download/fiddler https://www.charlesproxy.com/
Tested on localhost and Compression was 27.7% so that's a start.
We could modify Express to serve the web app using gzip compression (if supported on target platforms)