Add CORS, cache and timeout for /og endpoint#13
Merged
yehezkielgunawan merged 1 commit intomainfrom Nov 22, 2025
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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