--no-cache option

This commit is contained in:
Lloyd Brookes
2015-11-15 15:51:18 +00:00
parent 99305cb78a
commit 01ba3676e5
3 changed files with 11 additions and 3 deletions

View File

@ -83,8 +83,11 @@ function getApp (options) {
})
}
app.use(conditional())
app.use(etag())
/* Cache */
if (!options['no-cache']) {
app.use(conditional())
app.use(etag())
}
/* mime-type overrides */
if (options.mime) {