Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

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

Open
Sjolus opened this issue Apr 2, 2021 · 0 comments
Open

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

Sjolus opened this issue Apr 2, 2021 · 0 comments

Comments

@Sjolus
Copy link

Sjolus commented Apr 2, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant