Closed
Labels
bugSomething isn't workingexternal-issueCreated outside of Supabasepr-openedA PR has been opened to resolve the issue
Description
When using supabase.storage.from('bucket').download(path) in Supabase Edge Functions, updated
files are not reflected immediately. The method appears to have HTTP-level caching that
serves stale data.
Reproduction:
- Upload a JSON file to storage
- Call download() to fetch it
- Update the file in storage (via dashboard or API)
- Call download() again → still returns old content
Workaround:
Using createSignedUrl() + manual fetch with cache: 'no-store' returns fresh data:
const { data: urlData } = await supabase.storage
.from('bucket')
.createSignedUrl(path, 60);
const response = await fetch(urlData.signedUrl, { cache: 'no-store' });
const blob = await response.blob();
Expected behavior:
download() should return the current file contents, not cached data.
Environment:
- Supabase Edge Functions (Deno)
- @supabase/supabase-js v2
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingexternal-issueCreated outside of Supabasepr-openedA PR has been opened to resolve the issue
Activity
7ttp commentedon Mar 10, 2026
Fixed in supabase/supabase-js#2090
Closing this up!