| | |
| | | |
| | | [![NPM Version][npm-version-image]][npm-url] |
| | | [![NPM Downloads][npm-downloads-image]][npm-url] |
| | | [![Linux Build][travis-image]][travis-url] |
| | | [![Linux Build][github-actions-ci-image]][github-actions-ci-url] |
| | | [![Windows Build][appveyor-image]][appveyor-url] |
| | | [![Test Coverage][coveralls-image]][coveralls-url] |
| | | |
| | |
| | | ``` |
| | | |
| | | ## API |
| | | |
| | | <!-- eslint-disable no-unused-vars --> |
| | | |
| | | ```js |
| | | var send = require('send') |
| | |
| | | |
| | | ##### immutable |
| | | |
| | | Enable or diable the `immutable` directive in the `Cache-Control` response |
| | | Enable or disable the `immutable` directive in the `Cache-Control` response |
| | | header, defaults to `false`. If set to `true`, the `maxAge` option should |
| | | also be specified to enable caching. The `immutable` directive will prevent |
| | | supported clients from making conditional requests during the life of the |
| | |
| | | [appveyor-url]: https://ci.appveyor.com/project/dougwilson/send |
| | | [coveralls-image]: https://badgen.net/coveralls/c/github/pillarjs/send/master |
| | | [coveralls-url]: https://coveralls.io/r/pillarjs/send?branch=master |
| | | [github-actions-ci-image]: https://badgen.net/github/checks/pillarjs/send/master?label=linux |
| | | [github-actions-ci-url]: https://github.com/pillarjs/send/actions/workflows/ci.yml |
| | | [node-image]: https://badgen.net/npm/node/send |
| | | [node-url]: https://nodejs.org/en/download/ |
| | | [npm-downloads-image]: https://badgen.net/npm/dm/send |
| | | [npm-url]: https://npmjs.org/package/send |
| | | [npm-version-image]: https://badgen.net/npm/v/send |
| | | [travis-image]: https://badgen.net/travis/pillarjs/send/master?label=linux |
| | | [travis-url]: https://travis-ci.org/pillarjs/send |