Fix Expires when the header is -1

This fixes the issue described in #6469.


Let me know if I've missed something.

Thanks.