09 October, 2022

How to Purge/Invalidate/Delete cache in the AWS cloud front

 

How to Purge/Invalidate/Delete cache in the AWS cloud front?

One of the following options is available if you need to remove a file from CloudFront edge caches before it expires:

The file should be removed from edge caches. When a viewer requests the file again later, CloudFront goes back to the source to get the most recent copy.


To provide a different version of the file with a different name, use file versioning. See Using versioned file names to update existing files for further details.

To purge cache in the AWS cloud front follow these steps:


Open your CloudFront >> Distributions list, and click the desired distribution ID if you want to clear its cache.


click on Create  Invalidations Button

CloudFront Distributions


under crate invalidations >> Object Paths "/*" to clear all your cached files and click on "Create Invalidations" finally

under crate invalidations >> Object Paths "/*"


All set now, it will complete the command and all cached files will be deleted.


All set now, it will complete the command and all cached files will be deleted.


PLease share our feedback/comment if it works for you?








No comments:

Post a Comment

Microservices vs Monolithic Architecture

 Microservices vs Monolithic Architecture Here’s a clear side-by-side comparison between Microservices and Monolithic architectures — fro...