make Maxage work, check the same Set-Cookie header

1. make Maxage config work
2. check Set-Cookie header, if has the same cookie name, then just return