1
votes

I have the following image in an S3 bucket.

/images/thumbnails/654-thumb2.jpg

In my C# code, I've created an invalidation for that specific path. The validation runs as I verified it via the console and I see the following object path in the invalidation detailes:

/images/thumbnails/654-thumb2.jpg

After the invalidation finished ("Completed" state), I go to check if the image was updated, but it remains the same as before. I've double checked that this is the right CloudFront distribution and it is. I also checked that there isn't a typo and the path is written ok.

When I open the file in S3, I see the new image, but it is not being updated on the CDN after invalidation.

Any idea what I need to do to make it work?

I'm developing in C#/ASP.NET 4.5

1
Can you capture the response headers from CloudFront and S3 GET requests for the object and add them into the question? Have you verified the behavior with curl and elminated the browser cache or any transparent intermediate caches? - Michael - sqlbot
Man, I was stuck on this one. Turned out to be Cloudflare getting in the middle and providing its own caching. Cloudfront was invalidating just fine. Doh... - rick6

1 Answers

-1
votes

Either you've missed something, or you've uncovered a bug!
Double check your origin and behavious to make sure you're pointing at the S3 path you think you are, then raise it with AWS support.