mydomain
No ADS
No ADS

Amazon CloudFront Invalidation

  1. Create "Invalidation"
  2. Invalidation with API
Amazon CloudFront is a Content Delivery Network (CDN) that provides fast and secure delivery of static and dynamic web content to users around the world. CloudFront has a feature called "Cache Invalidation", which allows you to remove cached content from the CDN so that new content can be delivered to users.
CloudFront's architecture and how it works explains why "Cache Invalidation" is necessary every time data on the origin server changes. CloudFront's "Cache Invalidation" concept is similar to CloudFlare's "Cache Purge" concept.
In this article, I will show you how to invalidate CloudFront caching with CloudFront Console.

1. Create "Invalidation"

First, login to CloudFront Console.
Select a Distribution that you are interested in.
  • [Selected Distribution] > Invalidations > Create Invalidation
Add object paths to the editor and press "Create Invalidation".
  • Each path is on a separate line.
For example:
/tutorials/*
/11111/css-tutorial.html
/22222/java-tutorial.html
Or the simplest is to clear the cache for all objects:
/*

2. Invalidation with API

CloudFront provides APIs that allow to create "Invalidation".
No ADS
No ADS