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

Cache GET requests with httr2::req_cache()? #72

Open
Aariq opened this issue Dec 11, 2024 · 3 comments
Open

Cache GET requests with httr2::req_cache()? #72

Aariq opened this issue Dec 11, 2024 · 3 comments

Comments

@Aariq
Copy link
Collaborator

Aariq commented Dec 11, 2024

https://httr2.r-lib.org/reference/req_cache.html

@Aariq
Copy link
Collaborator Author

Aariq commented Dec 11, 2024

@jeffswitzer what do you think about this? Are there any situations where this could cause problems? E.g. would the URL returned by https://services.usanpn.org/geo-services/v1/agdd/simple/map expire at some point in a way that wouldn't trigger the cache to be invalidated?

@Aariq
Copy link
Collaborator Author

Aariq commented Dec 11, 2024

@Aariq
Copy link
Collaborator Author

Aariq commented Jan 7, 2025

This would probably supersede caching with the pkg.env environment set up in zzz.R

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

No branches or pull requests

1 participant