We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b6be8 commit d09a05fCopy full SHA for d09a05f
.changeset/shy-waves-obey.md
@@ -0,0 +1,5 @@
1
+---
2
+"@supabase-cache-helpers/storage-core": patch
3
4
+
5
+fix: bust cache for .info() calls
packages/storage-core/src/url-fetcher.ts
@@ -28,7 +28,10 @@ export const createUrlFetcher = (
28
if (config?.ensureExistence) {
29
const { data: exists } = await fileApi.exists(path);
30
if (!exists) return;
31
- const { data: fileInfo } = await fileApi.info(path);
+ // the `info` endpoint is cached - we need to bust it
32
+ const { data: fileInfo } = await fileApi.info(
33
+ `${path}?bust=${Date.now()}`,
34
+ );
35
if (!fileInfo) return;
36
const value = fileInfo.lastModified || fileInfo.updatedAt;
37
if (!value) return;
0 commit comments