CLC-1482 Respect the maximum_expires_in setting

JIRA: https://jira.media.berkeley.edu/jira/browse/CLC-1482