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

HTTPCache: FetcherResponse.url should exist consistently #105

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

glasser
Copy link
Member

@glasser glasser commented Dec 3, 2022

Previously, the url on the FetcherResponse returned from an HTTPCache would be set properly if this was an actual fetch, but set to '' if it were read from the cache.

This issue was introduced in
apollographql/apollo-server#1362 (as part of the initial creation of RESTDataSource) as part of allowing for custom cache keys.

Fixes #35.

Previously, the `url` on the `FetcherResponse` returned from an
HTTPCache would be set properly if this was an actual fetch, but set to
'' if it were read from the cache.

This issue was introduced in
apollographql/apollo-server#1362 (as part of the
initial creation of RESTDataSource) as part of allowing for custom cache
keys.

Fixes #35.
@glasser glasser requested a review from trevor-scheer December 3, 2022 00:14
@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 3, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2eba78a:

Sandbox Source
silent-water-c352xe Issue #35

@glasser glasser merged commit 8af22fe into main Dec 5, 2022
@glasser glasser deleted the glasser/response-needs-url branch December 5, 2022 18:06
@github-actions github-actions bot mentioned this pull request Dec 5, 2022
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.

Cached REST-Response does not contain URL
2 participants