Category: Supabase and databases

Supabase Storage: CDN Shows an Outdated Image

Read this guide in Polish

The image under the same URL does not change immediately after saving a new version.

How to identify the source of the problem

Check the object cache-control and CDN reply headers for a specific address.

Compare the result for the authorized and unauthorised user, project name and exact error code.

Repair steps

Save a new version under a new path or control cache according to application requirements.

How to Test Solution

The new URL shows the new file, and the old file can expire without accidentally replacing it.

Security and restrictions

Change permissions and scheme first on test data with backup. Do not put service role in your browser.