Skip to content

Pre-calculate CORS domains in cache rather than calculating every time#7785

Merged
mitchellhenke merged 4 commits intomainfrom
mitchellhenke/cors-faster
Feb 7, 2023
Merged

Pre-calculate CORS domains in cache rather than calculating every time#7785
mitchellhenke merged 4 commits intomainfrom
mitchellhenke/cors-faster

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

This PR lifts the calculation of protocols/domains to store them in the cache rather than storing the redirect URIs themselves and re-calculating on each CORS request.

@mitchellhenke mitchellhenke requested a review from a team February 7, 2023 17:00
changelog: Internal, Cross-Origin Resource Sharing, Pre-calculate CORS domains in cache rather than calculating every time
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Mitchell Henke and others added 2 commits February 7, 2023 11:30
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
@mitchellhenke mitchellhenke merged commit 8db3726 into main Feb 7, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/cors-faster branch February 7, 2023 18:42
@aduth aduth mentioned this pull request Feb 9, 2023
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