Open sckott opened 4 years ago
APIs that send certain response headers to test against:
cache-control: public, max-age=3601
& age: 0
/age: 478
(age header varies with each request)Cache-Control: no-cache
wikitaxa::wk_wikispecies
, e..g, cache-control: private, must-revalidate, max-age=0
& age: 0
(age field is always zero w/ each request)Cache-Control: private
& ``Cache-Control: no-cache, no-store, max-age=0, must-revalidate
& Expires: 0
& Pragma: no-cache
ETag: W/"3eb-ZLtsaPeDQHcASdzjqCxnUQ"
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 :
p.s.
Seems that the folowing are often found together:
cache-control
andage
last-modified
,if-modified-since
,if-unmodified-since
etag