You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
-`index` Default file name, defaults to 'index.html'
34
34
-`defer` If true, serves after `return next()`, allowing any downstream middleware to respond first.
35
35
-`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.
36
37
-[setHeaders](https://github.com/koajs/send#setheaders) Function to set custom headers on response.
37
38
-`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`)
0 commit comments