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
under crate invalidations >> Object Paths "/*" to clear all your cached files and click on "Create Invalidations" finally
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?
Comments
Post a Comment