Skip to content

Commit 9a392f1

Browse files
committedApr 7, 2019
fix: allow maxAge=0 option
1 parent 54dde5f commit 9a392f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/sirv/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ module.exports = function (dir, opts={}) {
5656
}
5757
}
5858

59-
let cc = opts.maxAge && `public,max-age=${opts.maxAge}`;
6059
cc && opts.immutable && (cc += ',immutable');
60+
let cc = opts.maxAge != null && `public,max-age=${opts.maxAge}`;
6161

6262
opts.cwd = dir;
6363
let abs, stats, headers;

0 commit comments

Comments
 (0)
Please sign in to comment.