serve-static
serve-static copied to clipboard
Serve static files
#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...
When we have a directory named like a file, extensions should win over redirect. Let's assume this listing: ``` /news.html /news/latest.html /news/index.html ``` and we set the `extensions` options to...
Pull Request for https://github.com/expressjs/serve-static/issues/136#issuecomment-661186897. Not married to this, but showing a rough outline of what I'm asking for. Defaults to the current behavior of ending the request cycle if sending...
This was brought up in https://github.com/expressjs/serve-static/issues/68#issuecomment-231559148 but I was wondering if this could be revisited. We may want to have logging/other tasks done per request but not block on sending...
Adds new option 'followssymlinks' which, when set to false, will reject any paths that contain symlinks. Is smart enough to ignore symlinks below the root directory, and only rejects symlinks...
Implementation of case sensitive serving requires https://github.com/pillarjs/send/pull/177 sovels https://github.com/expressjs/serve-static/issues/93
If I'm doing `.use(express.static('/var/www/html'))` and some attacker manages to `ln -s /etc/passwd /var/www/html`, then http://host/passwd will serve up /etc/passwd. Is there any way to tell serve-static not to follow symlinks,...
I don't know if this would even work because I don't know if Windows has something like this, but I'm wondering if you would be open to adding an option...
I am producing all the files and storing them only in memory, i.e. https://github.com/webpack/memory-fs. I'd like there to be an option to tell `serve-static` which fs to use.
Since `send` is able to handle finding files when the extensions don't exist in the path, would it be possible to expand the redirect functionality here to remove extensions? For...