View a markdown version of this page

Seeing cached images even after making configuration changes on Admin UI - Dynamic Image Transformation for Amazon CloudFront

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:

  1. Navigate to the CloudFront console

  2. Select the distribution created by the solution

  3. Go to the Invalidations tab

  4. Click Create invalidation

  5. Enter the path pattern for images to invalidate:

    • For all images: /*

    • For specific paths: /images/ or /mobile/

  6. Click Create invalidation

The invalidation will clear cached images, forcing CloudFront to request fresh images with the new configuration applied.