lisaogren / axios-cache-adapter

Caching adapter for axios. Store request results in a configurable store to prevent unneeded network requests.
MIT License
725 stars 108 forks source link

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

Open Sjolus opened 3 years ago

Sjolus commented 3 years ago

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

The else if here makes it so that if:

The Expires header is ignored.