Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CarbonNanotubes's avatar

Axios | Automatic Caching?

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

0 likes
1 reply
ejdelmonico's avatar
Level 53

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 or to participate in this conversation.