Seeing cached images even after making configuration changes on Admin UI
Problem: Images continue to show previous transformations even after updating origins, policies, or mappings through the Admin UI.
Cause: CloudFront caches processed images based on the request URL and headers. Configuration changes don’t automatically invalidate existing cached images.
Solution: Create a CloudFront invalidation to clear cached images:
-
Navigate to the CloudFront console
-
Select the distribution created by the solution
-
Go to the Invalidations tab
-
Click Create invalidation
-
Enter the path pattern for images to invalidate:
-
For all images:
/* -
For specific paths:
/images/or/mobile/
-
-
Click Create invalidation
The invalidation will clear cached images, forcing CloudFront to request fresh images with the new configuration applied.