Better maxAge handling, allows zero as value

Technically, now we cannot set header "Cache-Control" with value "max-age=0" because zero is a "falsy" value in JS.

Added type check here.