mozilla / self-repair-server

This project is now EOL, replaced by Normandy Recipe Server.
6 stars 11 forks source link

add max-age 1 minute cache control headers #80

Closed lonnen closed 9 years ago

lonnen commented 9 years ago

Rather than making CloudFront responsible for cache time, we can use cache control headers from s3. Amazon's documentation [1] says to prefer the max-age header, so here we'll have travis set up s3 to send a 1 minute max-age header for all the files we push.

[1]http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html