The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
lw7: temporarily remove cache control
Francesco Sansalvadore01f08514252f
diff --git a/apps/www/supabase/functions/lw7-ticket-gallery/handler.tsx b/apps/www/supabase/functions/lw7-ticket-gallery/handler.tsxindex 9c57725f9d2..0853a0155f5 100644--- a/apps/www/supabase/functions/lw7-ticket-gallery/handler.tsx+++ b/apps/www/supabase/functions/lw7-ticket-gallery/handler.tsx@@ -184,8 +184,8 @@ export async function handler(req: Request) {],headers: {'content-type': 'image/png',- 'cache-control': 'public, max-age=31536000, s-maxage=31536000, no-transform, immutable',- 'cdn-cache-control': 'max-age=31536000',+ // 'cache-control': 'public, max-age=31536000, s-maxage=31536000, no-transform, immutable',+ // 'cdn-cache-control': 'max-age=31536000',},})@@ -201,7 +201,7 @@ export async function handler(req: Request) {.from('images').upload(`lw7/tickets/gallery/${username}.png`, generatedImage.body!, {contentType: 'image/png',- cacheControl: '31536000',+ // cacheControl: '31536000',upsert: true,})if (storageError) throw new Error(`storageError: ${storageError.message}`)diff --git a/apps/www/supabase/functions/lw7-ticket-og/handler.tsx b/apps/www/supabase/functions/lw7-ticket-og/handler.tsxindex 1e322d12ca7..db2ad4dc467 100644--- a/apps/www/supabase/functions/lw7-ticket-og/handler.tsx+++ b/apps/www/supabase/functions/lw7-ticket-og/handler.tsx@@ -236,8 +236,8 @@ export async function handler(req: Request) {],headers: {'content-type': 'image/png',- 'cache-control': 'public, max-age=31536000, s-maxage=31536000, no-transform, immutable',- 'cdn-cache-control': 'max-age=31536000',+ // 'cache-control': 'public, max-age=31536000, s-maxage=31536000, no-transform, immutable',+ // 'cdn-cache-control': 'max-age=31536000',},})@@ -247,7 +247,7 @@ export async function handler(req: Request) {.from('images').upload(`lw7/tickets/${golden ? `golden/${username}` : username}.png`, generatedImage.body!, {contentType: 'image/png',- cacheControl: '31536000',+ // cacheControl: '31536000',upsert: false,})if (storageError) throw new Error(`storageError: ${storageError.message}`)