I am developing a webpage with shows number of results and has pagination which uses server side pagination with help of pagination tokens. If user clicks on already fetched page then should it make a fetch request? But as per my understanding there is no mapping between pagination tokens and data at server side. Or correct me if there can a mapping at backend and we should be fetching data from server? What is the general or preferred approach?
So if client side storage is the only option(preferred) can anyone tell me which storage method should I prefer for json data or how should I proceed?
I referred this link, https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Client-side_storage And according to it, web storage is for simple data similar to cookies. Can I use it for storing json data?
Or my only option is IndexedDB?