static-cache
static-cache copied to clipboard
fix: maxAge 0 does not work
{
gzip: true,
maxAge: 365 * 24 * 60 * 60,
usePrecompiledGzip: true
},
{
'/index.html': {
maxAge: 0
}
}
I set maxAge = 0
for index.html
, but I got 365 * 24 * 60 * 60
.
because obj.maxAge ? xx:xx
for 0 is false
,so I got options.maxAge
@dead-horse can you merge this pr?