Skip to content

Commit d2b4aeb

Browse files
author
haoxin
committedFeb 3, 2017
doc - add extensions option
1 parent 8dea452 commit d2b4aeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎Readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ app.use(require('koa-static')(root, opts));
3333
- `index` Default file name, defaults to 'index.html'
3434
- `defer` If true, serves after `return next()`, allowing any downstream middleware to respond first.
3535
- `gzip` Try to serve the gzipped version of a file automatically when gzip is supported by a client and if the requested file with .gz extension exists. defaults to true.
36+
- `extensions` Try to match extensions from passed array to search for file when no extension is sufficed in URL. First found is served. (defaults to `false`)
3637

3738
## Example
3839

0 commit comments

Comments
 (0)
Please sign in to comment.