serve-static icon indicating copy to clipboard operation
serve-static copied to clipboard

Serve static files

Results 27 serve-static issues
Sort by recently updated
recently updated
newest added

#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...

pr
needs tests

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...

pr
needs tests
needs docs

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...

awaiting more info

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...

pr

Implementation of case sensitive serving requires https://github.com/pillarjs/send/pull/177 sovels https://github.com/expressjs/serve-static/issues/93

pr

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,...

enhancement

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...

awaiting more info

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.

help wanted
ideas

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...

ideas