Fix bug where expires caching header max-age was not set to the correct ...

...total seconds from timedelta