Skip to content

Commit

Permalink
Add more cache path examples (#536)
Browse files Browse the repository at this point in the history
Fixes #513
  • Loading branch information
hadley authored Sep 4, 2024
1 parent d1b29d2 commit 5b456c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion R/req-cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
#' [HTTP caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching).
#'
#' @inheritParams req_perform
#' @param path Path to cache directory.
#' @param path Path to cache directory. Will be created automatically if it
#' does not exist.
#'
#' For quick and easy caching within a session, you can use `tempfile()`.
#' To cache requests within a package, you can use something like
#' `file.path(tools::R_user_dir("pkgdown", "cache"), "httr2")`.
#'
#' httr2 doesn't provide helpers to manage the cache, but if you want to
#' empty it, you can use something like
Expand Down
7 changes: 6 additions & 1 deletion man/req_cache.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b456c8

Please sign in to comment.