I have something like:
var app = require('express')();
var compression = require('compression');
app.use(compression());
app.get('/', function(request, response) {
response.send('<!DOCTYPE html>.......');
}
app.listen(2345);
The problem is that the data gets sent chunked but I want it to be wholly sent with a content-length header. Just like Apache does by default (Why I want this behavior is explained in the comments).
So how do I send gzipped data directly and not chunked in express?