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

feat: Store the link header in cache #164

Merged
merged 1 commit into from
Jul 19, 2022
Merged

feat: Store the link header in cache #164

merged 1 commit into from
Jul 19, 2022

Conversation

alvarezfr
Copy link
Contributor

This PR just adds the response link header to the cached information. This header contains data we could store without compromising security or affecting the cache.

I need this header because I'm caching responses from the GitHub API and without this header, I cannot paginate the responses.

I have tested it and is working and the tests are passing.

References

related to #62 #64

@alvarezfr alvarezfr requested a review from a team as a code owner July 19, 2022 12:15
@wraithgar wraithgar changed the title Store the link header in cache feat: Store the link header in cache Jul 19, 2022
Copy link
Member

@wraithgar wraithgar left a comment

Choose a reason for hiding this comment

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

We still likely want to implement a way to configure what is cached but for now adding Link is a good idea, especially given that github uses it.

@wraithgar wraithgar merged commit dae6384 into npm:main Jul 19, 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.

2 participants