I\'ve a asp.net mvc application which returns the JSON result containing upto n number of years worth of data which then gets rendered on Javascript chart.
Retrive the data from database and save as a static file at server.
Give a .css or .png extension. (Browser will automatically cache the stylesheet and image files.).
Save the data filename with timestamp in a hidden field.( to make sure loading the latest file from server if there is a change to the file)
Load the file from server using AJAX, First time it will load from server, but next time it will load from browser cache.
You can use JSON.Parse() to Parse AJAX request result.