Bug report
Describe the bug
It seems like the .info() request that calls /object/info is cached and not busted after an upsert on the same path.
I came across this when migrating the existence check in supabase cache helpers to use .exists() + .info() instead of .list() for performance reasons (pr with the fix psteinroe/supabase-cache-helpers#626)
If this is wanted, I would love some documentation on it.
Reproduce
- Upload file x
- call
/info -> returns metadata for file x
- Upsert file x with file y
- call
/info -> returns metadata for file x
- call
/info?bust=true -> returns metadata for file y
Expected behavior
Should return metadata for file y after the upsert.
Bug report
Describe the bug
It seems like the
.info()request that calls/object/infois cached and not busted after an upsert on the same path.I came across this when migrating the existence check in supabase cache helpers to use
.exists()+.info()instead of.list()for performance reasons (pr with the fix psteinroe/supabase-cache-helpers#626)If this is wanted, I would love some documentation on it.
Reproduce
/info-> returns metadata for file x/info-> returns metadata for file x/info?bust=true-> returns metadata for file yExpected behavior
Should return metadata for file y after the upsert.