Skip to content

Commit c7be162

Browse files
committed
Respect static --cache 0
2 parents 3909741 + 1a77010 commit c7be162

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Fork from `node-static`
1212
- Update/fix: Protect `fs.stat` calls from bad path arguments (@brpvieira)
1313
- Enhancement: Allow `serverInfo` to be `null` (@martindale)
1414
- Enhancement: Time display logging with leading 0 (@mauris)
15+
- Enhancement: Respect static `--cache 0` (@matthew-andrews)
1516
- Optimization: 'use strict' directive
1617
- Docs: Fix header example (@emmanouil)
1718
- Docs: Sp. (@EdwardBetts)

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if (argv.version) {
8888
process.exit(0);
8989
}
9090

91-
if (argv.cache) {
91+
if ('cache' in argv) {
9292
(options = options || {}).cache = argv.cache;
9393
}
9494

0 commit comments

Comments
 (0)