Skip to content

Commit 48119f9

Browse files
committed
Allows explicitly setting cache to 0, closes http-party#158
1 parent def01f3 commit 48119f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/http-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var HTTPServer = exports.HTTPServer = function (options) {
2323

2424
this.headers = options.headers || {};
2525

26-
this.cache = options.cache || 3600; // in seconds.
26+
this.cache = options.cache === undefined ? 3600 : options.cache; // in seconds.
2727
this.showDir = options.showDir !== 'false';
2828
this.autoIndex = options.autoIndex !== 'false';
2929

0 commit comments

Comments
 (0)