Axios | Automatic Caching?

Published 6 days ago by shaqaruden

Does Axios cache automatically? I don't remember if Jeffrey ever mentioned this.

Best Answer (As Selected By shaqaruden)
ejdelmonico

Axios is only an http client. If you want to cache something, just write the code. It is not hard. There are several packages available for caching with axios as well. For me, I just cache locally with localStorage depending on the expected lifetime of the data.

https://github.com/jin5354/axios-cache-plugin

ejdelmonico

Axios is only an http client. If you want to cache something, just write the code. It is not hard. There are several packages available for caching with axios as well. For me, I just cache locally with localStorage depending on the expected lifetime of the data.

https://github.com/jin5354/axios-cache-plugin

Please sign in or create an account to participate in this conversation.