I have a web page which is having 4 tabs. The first tab is shown default on the load of the page. When the user clicks on the 2nd tab the data relevent to the second tab is retrieved from Database and displayed. The same happens when you move to 3rd and 4th tab for the first time.
If the user goes back to any tab which is already viewed by this user, I dont want to query it again from the Database. Instead we need to retrive the previous retrived results.
What is the best way to do it? Is there any caching mechanism to achive this.