Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid duplicated fetch of same documents with different fragments #44

Merged

Conversation

kool79
Copy link
Contributor

@kool79 kool79 commented Dec 18, 2023

Bug fixed: When the $ref contains a wrong uri then such uri is not present in
local cache (canonicalUriToObject). This cause to fetch the base document
again and again when try to resolve such $ref.
It is especially critical for 'same-document' (#fragment) refs where we can
track such situation. We should not fetch the document if corresponding
absolute uri (without #fragment) already exists in the 'canonicalUriToObject' cache.

Bug fixed: When the $ref contains a wrong uri then such uri is not present in
 local cache (canonicalUriToObject). This cause to fetch the base document
 again and again when try to resolve such $ref.
 It is especially critical for 'same-document' (#fragment) refs where we can
 track such situation. We should not fetch the document if corresponding
 absolute uri (without #fragment) already exists in the 'canonicalUriToObject' cache.
@jimblackler jimblackler merged commit 0f697ff into jimblackler:master Jan 24, 2024
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.

2 participants