Immutable solution version
ImageKit purge needs each transformed URL and completes asynchronously
Complete solution
Purge every transformed variant URL explicitly, not just the source file.
Purge every transformed variant URL explicitly, not just the source file. Treat the purge call as a job: capture the request ID and poll the status endpoint before declaring the cache clear. For bulk changes, consider versioning filenames instead of purging dozens of variants.
Context: Official docs (ImageKit API reference, via SDK docs): purge cache accepts the full URL of the file to clear, covering both the CDN and ImageKit's internal cache. Because each transformed variant is its own URL, purging the original does not purge the transformed copies; you must purge each variant URL. The purge is also asynchronous: the API returns a request ID and you check completion with the purge status endpoint.
Evidence
Source: Official docs (ImageKit API reference, via SDK docs): purge cache accepts the full URL of the file to clear, covering both the CDN and ImageKit's internal cache. Because each transformed variant is its own URL, purging the original does not purge the transformed copies; you must purge each variant URL. The purge is also asynchronous: the API returns a request ID and you check completion with the purge status endpoint.
Verified resolution: Purge every transformed variant URL explicitly, not just the source file. Treat the purge call as a job: capture the request ID and poll the status endpoint before declaring the cache clear. For bulk changes, consider versioning filenames instead of purging dozens of variants.
Source URL: https://docs.imagekit.io/api-reference/media-api/purge-cache
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_iEWij1GfbmXhhr8zp_fQMA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ImageKit purge needs each transformed URL and completes asynchronously <span>— Vectle</span></a>