views:

72

answers:

2

I'm currently serving up static images to my site via Amazon Cloudfront and for some reason my images won't update when I try to overwrite them with an updated image. The old image continues to display.

I've even tried deleting the entire images folder and uploading the newest ones without success. The only thing that works is renaming the image.

Anyone else experience this?

A: 

Nevermind, I found out the issue here: http://net.tutsplus.com/articles/general/supercharge-website-performance-with-aws-s3-and-cloudfront/

*Caching Problems

Once a file is cached in the CloudFront network servers, it does not get replaced until it expires and is automatically removed (after 24 hours of inactivity by default). This can be a major pain if you’re trying to push updates out immediately. To get around this you’ll need to version your files. For example, “my-stylesheet.css” could be “my-stylesheet-v1.0.css”. Then when you make an update that needs to go out immediately you would change the name to “my-stylesheet-v1.1.css” or something similar.*

Kenny Powers
This is no longer the case. You should accept S3 Browser Team's answer.
Josh Smith
+1  A: 

recently amazon s3 announced new feature called content invalidation. it allows you to invalidate some file just with a one call. check cloudfront api references for more details.

S3 Browser Team