cache-control config

This commit is contained in:
Сергей Куликов
2016-04-18 14:08:28 +03:00
committed by Lloyd Brookes
parent aa11620b8e
commit 1c57d29b3f
3 changed files with 10 additions and 1 deletions

View File

@ -46,7 +46,6 @@ if (options.misc.help) {
if (options.server['log-format']) {
console.error(ansi.format(err.message, 'red'))
}
})
const ws = localWebServer({
static: {
@ -65,6 +64,7 @@ if (options.misc.help) {
log: {
format: options.server['log-format']
},
cacheControl: options.server.cacheControl,
compress: options.server.compress,
mime: options.server.mime,
forbid: options.server.forbid,