compression not working without res.sendFile for other static files

Viewed 12
app.use(express.static(__dirname + '/applications/production/dist/'));
app.use(compression())

js files/static files not compressing without use of this app.get('', (req, res) => {res.sendFile(__dirname + 'filepath')})- why?

0 Answers
Related