supabase / storage-py

Home Page:https://supabase-community.github.io/storage-py/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storage uploads do not have `cache-control` header

funwithtriangles opened this issue · comments

Describe the bug
When downloading images that were uploaded using supabase-py, they do not have the correct cache-control header, meaning the image is never saved on the browser. Downloading images that were uploaded via supabase-js, they have cache-control: max-age=3600.

Is this the case for others? Or have I got something wrong on the implementation side?

Hey,

Thanks for reporting this! You're right- I don't think the cache-control headers are being set in the Python lib - I'll look into it when a slot frees up but PRs are welcome too. Going to transfer to the storage lib.

Jo