You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently went through a migration to resize our images and then upload the resized version to storage.
However, in this process, we had a miscommunication that resulted in the new uploads including:
cacheControl: 'no-cache' (oops!)
I understand that Supabase Storage is just using S3 buckets, and I've looked into the AWS guidance on both expiration and controlling the Cache Key using policies, but didn't see anything that seemed accessible via Supabase. The extent of configuration I was able to find was just object types supported, and maximum file size (but please feel free to point me in the direction if there's more control over our buckets that I wasn't aware of).
Is there any way to bulk update the cacheControl policy for a bucket (such that it overrides the individual policy set per object?) Alternatively, is there any update method on Storage such that I can just update the policy per object rather than re-uploading each object?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We recently went through a migration to resize our images and then upload the resized version to storage.
However, in this process, we had a miscommunication that resulted in the new uploads including:
cacheControl: 'no-cache'
(oops!)I understand that Supabase Storage is just using S3 buckets, and I've looked into the AWS guidance on both expiration and controlling the Cache Key using policies, but didn't see anything that seemed accessible via Supabase. The extent of configuration I was able to find was just object types supported, and maximum file size (but please feel free to point me in the direction if there's more control over our buckets that I wasn't aware of).
Is there any way to bulk update the cacheControl policy for a bucket (such that it overrides the individual policy set per object?) Alternatively, is there any update method on Storage such that I can just update the policy per object rather than re-uploading each object?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions