expressjs / serve-static

Serve static files
MIT License
1.38k stars 227 forks source link

onRequest option #141

Closed sfmohassel closed 1 year ago

sfmohassel commented 3 years ago

140

added onRequest option to let us change the file to be sent. This is useful for creating middlewares that use something like sharp to compress a file and then return the compressed file