Static asset caching follows the server mode.
var server = require('@nodedk/server')
server({ mode: 'development' })
| Mode | Static asset cache |
|---|---|
| Development | no-cache, no-store, must-revalidate |
| Production | public, max-age=31536000 |
Route responses use the headers you set. Use revisions when changing cached assets.
Next: Revisions →