We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 044ce63 + 48119f9 commit 091e581Copy full SHA for 091e581
lib/http-server.js
@@ -43,7 +43,7 @@ function HttpServer(options) {
43
44
this.headers = options.headers || {};
45
46
- this.cache = options.cache || 3600; // in seconds.
+ this.cache = options.cache === undefined ? 3600 : options.cache; // in seconds.
47
this.showDir = options.showDir !== 'false';
48
this.autoIndex = options.autoIndex !== 'false';
49
this.contentType = options.contentType || 'application/octet-stream';
0 commit comments