static-cache icon indicating copy to clipboard operation
static-cache copied to clipboard

fix: maxAge 0 does not work

Open balancelove opened this issue 5 years ago • 1 comments

{
        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

balancelove avatar May 15 '19 13:05 balancelove

@dead-horse can you merge this pr?

balancelove avatar Oct 10 '19 10:10 balancelove