Amazon S3: is it possible to set HTTP expires headers *on access*?
in Apache’s mod_expires module (which allows you to set the Expires: header behavior), you can set a relative expiration header based on the access time of the file, eg,
ExpiresDefault “access plus 1 years”
.. The Cache-Control: max-age directive provides exactly what you’re asking for. For example:
Cache-Control: max-age=1314000
Tells CloudFront (and browsers) that they can cache the object for one year from the time it was originally fetched from the origin. We recommend that publishers set Cache-Control instead of Expires. Is there a reason you need Expires?