Rename `content_type` to `content-type` where possible.
Implement a default expiration time if an invalid one is specified.