Skip to content

Commit ef9379c

Browse files
mishelenhaoxin
authored and
haoxin
committedDec 18, 2017
update readme (#119)
I just refer on https://github.com/koajs/send at first I wanted to write issue: why not working sending brotli. As it turned out, koa-send works fine and even raises the priority to `.br`. It's all browser conventional requirement of https.
1 parent e4e907d commit ef9379c

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+
- `br` Try to serve the brotli version of a file automatically when brotli is supported by a client and if the requested file with .br extension exists (note, that brotli is only accepted over https). defaults to true.
3637
- [setHeaders](https://github.com/koajs/send#setheaders) Function to set custom headers on response.
3738
- `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`)
3839

0 commit comments

Comments
 (0)
Please sign in to comment.