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

Dont cache graphql errors #1219

Merged
merged 1 commit into from
Oct 28, 2023
Merged

Conversation

phildarnowsky-broad
Copy link
Contributor

No description provided.

@phildarnowsky-broad phildarnowsky-broad force-pushed the dont_cache_graphql_errors branch 2 times, most recently from 861ec67 to 8d4d0f4 Compare October 27, 2023 22:01
@phildarnowsky-broad
Copy link
Contributor Author

FYI @sjahl

Copy link
Contributor

@rileyhgrant rileyhgrant left a comment

Choose a reason for hiding this comment

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

Nice sleuthing on this one, this will be an excellent and crucial patch to have pre-v4.

Only comment is that per Steve's slack thread (linked here again for convenience), the header should be no-store, rather than no-cache.

Other than that lookin' good.

// Also, as written, this will no-cache not-found errors, which is
// undesirable, but something we can put off fixing until later.

response.set('Cache-Control', 'no-cache')
Copy link
Contributor

Choose a reason for hiding this comment

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

Per this Slack thread, I believe this should be no-store rather than no-cache, to have our desired effect

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes thank you nice catch

Note that one subtlety of this is that it also no-caches not-found errors, which is undesirable. If there's no, e.g., gene X now, that's going to also be the case later.
@rileyhgrant rileyhgrant self-requested a review October 28, 2023 15:27
Copy link
Contributor

@rileyhgrant rileyhgrant left a comment

Choose a reason for hiding this comment

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

LGTM!

@phildarnowsky-broad phildarnowsky-broad merged commit 4831f74 into main Oct 28, 2023
1 check passed
@rileyhgrant rileyhgrant deleted the dont_cache_graphql_errors branch January 17, 2024 23:18
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