I want to receive in response from the server 'Content-Length' For this i want to disable gzip compression. I use for this comprassion middleware:
const shouldCompress = (req, res) => {
if(req.headers['x-no-comprassion']) {
return false
}
}
app.use(compression({threshold: 5, filter: shouldCompress}))
And also send 'x-no-comprassion' header from client, but it still doesn't work. What could be the problem?