From 70b41234521961328f593138651ba951764422ca Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Thu, 3 Sep 2026 14:05:50 +0200 Subject: [PATCH] Forza la revalidazione dell'avatar dopo la sostituzione della foto Con cacheControl: "60" l'immagine sostituita poteva restare quella vecchia per un minuto se la CDN davanti allo storage non varia la cache in base alla query string di cache-busting (?v=). Co-Authored-By: Claude Sonnet 5 --- src/lib/avatar-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/avatar-store.ts b/src/lib/avatar-store.ts index d564576..64f33b3 100644 --- a/src/lib/avatar-store.ts +++ b/src/lib/avatar-store.ts @@ -78,7 +78,7 @@ export async function caricaAvatar(id: string, file: File) { const { error } = await supabase.storage.from(BUCKET).upload(percorso(id), blob, { contentType: "image/jpeg", upsert: true, - cacheControl: "60", + cacheControl: "0", }); if (error) throw error; }