Format Expires header according to HTTP specification.
Merge remote-tracking branch 'solarissmoke/last-modified-bug' into release-2.3.1