lisaogren / axios-cache-adapter

Caching adapter for axios. Store request results in a configurable store to prevent unneeded network requests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If Cache-Control header is present, Expires header is ignored

Sjolus opened this issue · comments

https://github.com/RasCarlito/axios-cache-adapter/blob/master/src/response.js#L24

The else if here makes it so that if:

  • There is a cache control
  • There is no cache-control-max-age header
  • There is an Expires header

The Expires header is ignored.