Please note that Amazon does not say that “TTL is 0”, it says “Minimum TTL is 0”. and this is completely different. The description above is highly desirable, but there is no guarantee that Cloudfront will actually do this.
In my experiments right now, I see that the cached image remained for several minutes in the edge, until my origin has already changed.
So, I think that “Minimum TTL is 0” is probably more like “Amazon has no strict intention to cache this” and, possibly, “and it will be updated frequently.”
For applications like CMS, where the web user publishes new content, I think TTL-0 is still not enough. You still have to either invalidate the CMS or use different paths for different version numbers.
polx Jan 26 '15 at 9:23 2015-01-26 21:23
source share