Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to cache slow loading page

Status
Not open for further replies.

bthale

Programmer
Oct 31, 2001
108
US
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");
 
Hi

bthale said:
It is not going to the server, but rendering is slow again.
You mean no request is made to the server ?

Well, that is the most you can do. Only the page sources are cached, not the rendered images. Of course, bad age design can slow down rendering, but so far we know nothing about your page's design.


Feherke.
 
Does it appear to load slowly in all browsers, or just specific ones, e.g. IE 6?

As feherke says, we need to know more about your page and what it is that isn't loading quick enough for you. I'd suggest giving us a URL to the page in question.

Dan




Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Thanks for the input. We work from what is given us as far as looks. The design is as good as we can get with what we have. The site is behind a corporate firewall, so I can't give you a url.

There is simply a lot of data and not much can be done about that. I was just wondering if there is a way to make it faster when using the back button.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top