I tried to enable the compression with sails.js and I did the following :
module.exports.http = {
middleware: {
compress: require('compression'),
order: [
'startRequestTimer',
'cookieParser',
'session',
'myRequestLogger',
'bodyParser',
'handleBodyParserError',
'compress',
'methodOverride',
'poweredBy',
'$custom',
'router',
'www',
'favicon',
'404',
'500'
]
}
}
But when I do that, I am not able to do any request, and I can't debug it since my webstorm license expired... Any idea what's the matter?