I'd like to pre-compress my static assets (excluding images) and serve them.
To serve the public
folder, I have:
app.use(express.static('path/to/public/'));
I believe express.compress()
compresses on-the-fly, which seems like an unnecessary burden on the server CPU for static assets.
What's the canonical way to achieve this?