axios-extensions icon indicating copy to clipboard operation
axios-extensions copied to clipboard

Is it possible to save cache in localstorage?

Open maxkopych opened this issue 5 years ago • 1 comments

Thank you for plugin! It works great but is it possible to save cache to localstorage? so after refresh of page cache stays.

maxkopych avatar Aug 30 '20 02:08 maxkopych

FOR POC purpose only , I am able to get it work using localforage but it won't be a robust solution as the serialization lost the full compatibility of axios response object. if we only care about the data and status in response, it might worth a try.

https://gist.github.com/fe0de47fefba2f46d243d528b9382fc8

pwang2 avatar Nov 05 '20 20:11 pwang2