Concepts

CloudFront Invalidation

A request that removes objects from the edge caches before the TTL expires.

How it works

CloudFront caches objects according to cache settings, so changes at the origin may not appear immediately. An invalidation requests removal of specified paths from CloudFront caches before expiration. After completion, a subsequent request can fetch the object from the origin. It does not clear browser caches or other caches outside CloudFront.

When to use it

The origin was updated and users must see the new file immediately.

Real-world example

A web team updates a stylesheet and submits a CloudFront invalidation for its path. After completion, CloudFront can fetch the new version from the origin, but browsers may retain the old copy.

Key facts

  • Invalidate everything with `*` or a path such as `/images/*`.
  • Without it, CloudFront serves the old file until the TTL ends.

Common pitfall

Frequent invalidations across many paths can incur charges. Versioning or hashing file names helps release new assets without relying on invalidation every time.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • stale content
  • bypass TTL
  • refresh cache

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning