© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
8 replies
Juliano

Configure Storage download caching time

I'm not sure how that works but is there any way to configure/delete the caching time of the storage API?
I'm using Tanstack query to cache the data I get from Supabase and I would like to do the same for images that I get from the Storage API. That would be very convenient for me to be able to delete the caching that the storage API uses. I would want to rely only on Tanstack query for the caching of my data, since this allows me to control their display precisely (show a loader when I'm loading them, show another small loader in the top right of my app when I'm refetching them while still displaying the current image etc).

Currently that works perfectly for text data, but for images, Tanstack think that I'm refetching them whereas
.download()
.download()
only give them back from the disk cache (in case they are in the cache ofc).
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Download Cold Storage
SupabaseSSupabase / help-and-questions
4y ago
Storage File Partial Download
SupabaseSSupabase / help-and-questions
2mo ago
configure storage on self hosted instance
SupabaseSSupabase / help-and-questions
3y ago
Supabase storage download is slow?
SupabaseSSupabase / help-and-questions
3y ago