Ajax only in case there is no local storage data available

Ajax only in case there is no local storage data available

cyruscyrus Posts: 1Questions: 1Answers: 0

I was searching about this topic but didn't really find a fitting explanation.
I saw the https://datatables.net/reference/option/ajax#Examples example about the local storage callback but I'm not sure how to implement it alongside a normal ajax call and only use ajax if there is no local storage data.
Would be glad if anybody could point me in the right direction.

This discussion has been closed.