expressjs.com icon indicating copy to clipboard operation
expressjs.com copied to clipboard

Incorrect default value for dotfiles in docs for express.static

Open thomas-haufe opened this issue 1 year ago • 1 comments

I think the default value mentioned at https://github.com/expressjs/expressjs.com/blob/gh-pages/_includes/api/en/4x/express.static.md#expressstaticroot-options is incorrect. It says in the table that the default value is 'ignore', but in the detailed docs at https://github.com/expressjs/expressjs.com/blob/gh-pages/_includes/api/en/4x/express.static.md#dotfiles which are linked in the table, it says this:

With the default value, it will not ignore files in a directory that begins with a dot.

The actual default value seems to be 'allow'.

(The docs for v5 have the same table with the same default value but I don't know whether the behavior changed for v5.)

thomas-haufe avatar Jun 28 '23 12:06 thomas-haufe