Skip to content

Commit

Permalink
Improved SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Sep 7, 2023
1 parent 0f1411f commit e39a213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion supabase/deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tasks": {
"run": "deno run --allow-env --allow-read --allow-net ./functions/generate-locations-clusters-set/index.ts",
"dev:og": "npx supabase functions serve og-image --no-verify-jwt --env-file .env",
"deploy": "npx supabase functions deploy generate-locations-clusters-set --import-map supabase/import_map.json",
"deploy": "npx supabase functions deploy generate-locations-clusters-set --import-map supabase/import_map.json --no-verify-jwt",
"deploy:og": "npx supabase functions deploy og-image --import-map supabase/import_map.json"
}
}
4 changes: 2 additions & 2 deletions supabase/functions/og-image/handler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export default 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=${60 * 60 * 24 * 7}, s-maxage=${60 * 60 * 24 * 7}, no-transform, immutable`, // 1 week
'cdn-cache-control': `max-age=${60 * 60 * 24 * 7}`,
},
},
)
Expand Down

0 comments on commit e39a213

Please sign in to comment.