Skip to content

Add CORS, cache and timeout for /og endpoint#13

Merged
yehezkielgunawan merged 1 commit intomainfrom
cache-handler
Nov 22, 2025
Merged

Add CORS, cache and timeout for /og endpoint#13
yehezkielgunawan merged 1 commit intomainfrom
cache-handler

Conversation

@yehezkielgunawan
Copy link
Copy Markdown
Owner

Handle OPTIONS preflight for /og and expose CORS headers Use 1200x627 OG size. Extend Cache-Control to 1h with s-maxage and stale-while-revalidate. Add X-Content-Type-Options and Content- Length to responses. Add a 4s timeout for avatar fetch to avoid hanging remote requests.

Description

Linked Issues

Preview or Screenshot

Handle OPTIONS preflight for /og and expose CORS headers Use 1200x627 OG
size. Extend Cache-Control to 1h with s-maxage and
stale-while-revalidate. Add X-Content-Type-Options and Content- Length
to responses. Add a 4s timeout for avatar fetch to avoid hanging remote
requests.
@yehezkielgunawan yehezkielgunawan self-assigned this Nov 22, 2025
@yehezkielgunawan yehezkielgunawan added the bug Something isn't working label Nov 22, 2025
@yehezkielgunawan yehezkielgunawan merged commit 4a7d6a4 into main Nov 22, 2025
1 check passed
@yehezkielgunawan yehezkielgunawan deleted the cache-handler branch November 22, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant