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.
1 parent def01f3 commit 48119f9Copy full SHA for 48119f9
lib/http-server.js
@@ -23,7 +23,7 @@ var HTTPServer = exports.HTTPServer = function (options) {
23
24
this.headers = options.headers || {};
25
26
- this.cache = options.cache || 3600; // in seconds.
+ this.cache = options.cache === undefined ? 3600 : options.cache; // in seconds.
27
this.showDir = options.showDir !== 'false';
28
this.autoIndex = options.autoIndex !== 'false';
29
0 commit comments