Skip to content

perf: add TTL cache for Intl service#68

Merged
stas-nc merged 3 commits intomasterfrom
perf/intl
Feb 5, 2025
Merged

perf: add TTL cache for Intl service#68
stas-nc merged 3 commits intomasterfrom
perf/intl

Conversation

@stas-nc
Copy link
Member

@stas-nc stas-nc commented Jan 31, 2025

No description provided.

@wRLSS
Copy link
Contributor

wRLSS commented Feb 4, 2025

Could u please create PR targeting this branch inside ILC to ensure all tests are green also there

@stas-nc
Copy link
Member Author

stas-nc commented Feb 4, 2025

Could u please create PR targeting this branch inside ILC to ensure all tests are green also there

I'm not able to do it until this PR is merged. I applied the necessary changes in ILC, but PR should be after merge.


const urlObj = new URL(uri);
origin = urlObj.origin;
if (normalizedUri.startsWith('/')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

how would it work for cases my-url/1 when it starts not from /

Copy link
Member Author

Choose a reason for hiding this comment

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

It will go by default route through new URL() call. Do we want to put more strict matching by protocol?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so because it would be a surprise next time for whom will use such URLs

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@stas-nc stas-nc merged commit 6996be0 into master Feb 5, 2025
4 checks passed
@stas-nc stas-nc deleted the perf/intl branch February 5, 2025 11:31
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.

4 participants