Skip to content

Conversation

pkuzco
Copy link

@pkuzco pkuzco commented Sep 27, 2025

This PR adds the Access-Control-Max-Age header to CORS responses to allow browsers to cache the results of preflight requests for 10 minutes.

By doing so, clients, especially during startup, will avoid sending repeated OPTIONS requests for each endpoint. This can noticeably improve performance and shave off more than a full second in many cases during startup:

image

@pkuzco pkuzco requested a review from a team as a code owner September 27, 2025 06:48
@CLAassistant
Copy link

CLAassistant commented Sep 27, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants