jaredwray/cacheable

Cache revalidation fails - due to typo

Closed this issue · 1 comments

I'm using https://github.com/sindresorhus/got and cache was not working as expected, while debugging i found this issue.

In https://github.com/lukechilds/cacheable-request/blob/master/src/index.js#L139
policy.satisfiesWithoutRevalidation expects a response object. But instead of a response, opts is passed.

policy.satisfiesWithoutRevalidation source https://github.com/kornelski/http-cache-semantics/blob/master/index.js#L137

sorry, variable names are different, but they are of same type. ignore this ticket.