I have a JSP/HTML page that loads slowly because of the amount of data being presented. This slowness is acceptable, but the presentation includes links that give more information about the particular data line. When a link is clicked, the details page is shown, and there is a Back button that uses 'history.back()'. Unfortunately the slow loading page is loading again. It is not going to the server, but rendering is slow again. Is there a way to add caching so that when the user clicks the Back button, the page won't take so long reloading. I tried the following but it is still very slow.
response.setHeader("Cache-Control", "must-revalidate");
response.setHeader("Cache-Control", "max-age=120000");
response.setHeader("Cache-Control", "must-revalidate");
response.setHeader("Cache-Control", "max-age=120000");