Flutter: purgeCache

Invalidates the CDN cache for a single object in a bucket.

Parameters

Examples

Purge the CDN cache for an object

final String res = await supabase
  .storage
  .from('avatars')
  .purgeCache('avatar1.png');

Purge only the transformed variants

final String res = await supabase
  .storage
  .from('avatars')
  .purgeCache('avatar1.png', transformations: true);