-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
expirerequest expiration related issuesrequest expiration related issues
Description
right now the only method we have is time based: number of seconds since the request was recorded.
perhaps we can use response headers, following https://github.com/sourcelevel/faraday-http-cache :
- cache-control: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
- age: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age
- expires: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires
- last-modified: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
- if-modified-since: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
- if-unmodified-since: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
- if-none-match: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
- e-tag: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
p.s.
- pragma: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma (only recommended for backwards compatibility with http 1.0 clients)
Seems that the folowing are often found together:
cache-controlandagelast-modified,if-modified-since,if-unmodified-sinceetag
- canonical ref perhaps: rfc2616 https://tools.ietf.org/html/rfc2616#page-108
- how httr gathers caching info https://github.com/r-lib/httr/blob/master/R/cache.R - not used in normal http requests in the pkg though
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
expirerequest expiration related issuesrequest expiration related issues