Skip to content

Commit

Permalink
fix: allow maxAge=0 option
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Apr 7, 2019
1 parent 54dde5f commit 9a392f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sirv/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ module.exports = function (dir, opts={}) {
}
}

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

opts.cwd = dir;
let abs, stats, headers;
Expand Down

0 comments on commit 9a392f1

Please sign in to comment.