Supabase Storage Bucket: random JSON response on file request
MP3 files stored in a public storage bucket - weird behaviour that TOTALLY messes up with my website user experience!!!
Calling this in the browser today ...
https://api.lilura.ai/storage/v1/object/public/lilura/audio/6198d4bf-fd55-457c-8d32-d95f441fb4e3/5f0c1fb3-6118-42bb-9562-ddb192c074f1.mp3
...actually returns JSON on my side:
{"id":"a45f1b73-a90c-47a3-8d5a-a227759fb8c5","name":"audio/6198d4bf-fd55-457c-8d32-d95f441fb4e3/5f0c1fb3-6118-42bb-9562-ddb192c074f1.mp3","version":"d69d3b13-133c-4b4d-b64b-f8033a371884","bucket_id":"lilura","size":902000,"content_type":"audio/mpeg","cache_control":"max-age=3600","etag":""cbcaaafc3711b601167c6248e873b795"","metadata":{},"last_modified":"2025-12-04T14:31:30.136Z","created_at":"2025-12-04T14:31:30.136Z"}
Calling this in the same browser (same bucket, different subfolder):
https://api.lilura.ai/storage/v1/object/public/lilura/audio/335862a3-7fa7-4211-9836-ae8607e46d39/1b7101ab-4017-4432-9a55-faf6409ea3fb.mp3
....plays the MP3!
However, when using an InPrivate-browser session both files are played! This totally messes up my user experience as this is story narration. It works for one element and causes an error for another
Calling this in the browser today ...
https://api.lilura.ai/storage/v1/object/public/lilura/audio/6198d4bf-fd55-457c-8d32-d95f441fb4e3/5f0c1fb3-6118-42bb-9562-ddb192c074f1.mp3
...actually returns JSON on my side:
{"id":"a45f1b73-a90c-47a3-8d5a-a227759fb8c5","name":"audio/6198d4bf-fd55-457c-8d32-d95f441fb4e3/5f0c1fb3-6118-42bb-9562-ddb192c074f1.mp3","version":"d69d3b13-133c-4b4d-b64b-f8033a371884","bucket_id":"lilura","size":902000,"content_type":"audio/mpeg","cache_control":"max-age=3600","etag":""cbcaaafc3711b601167c6248e873b795"","metadata":{},"last_modified":"2025-12-04T14:31:30.136Z","created_at":"2025-12-04T14:31:30.136Z"}
Calling this in the same browser (same bucket, different subfolder):
https://api.lilura.ai/storage/v1/object/public/lilura/audio/335862a3-7fa7-4211-9836-ae8607e46d39/1b7101ab-4017-4432-9a55-faf6409ea3fb.mp3
....plays the MP3!
However, when using an InPrivate-browser session both files are played! This totally messes up my user experience as this is story narration. It works for one element and causes an error for another