users@glassfish.java.net

Enable Browser Cache for JSP?

From: <forums_at_java.net>
Date: Mon, 4 Jul 2011 10:54:47 -0500 (CDT)

 I have a jsp file that reads from a database to generate a page for the
user.

The read is complex and slow, the is result large, so I don't want to keep
generating and trasmitting the page back to the user.

The page stays the same throughout the user's logon session, so it doesn't
need regenerating anayway until the logouts/back on.

How can I get the browser to cache the page and read from the cache when the
user clicks on a link to that page?

I have tried setting the Cache-Cotrol header to public with a max-age, but
this hasnot helped.

Any ideas? Thanks.


--
[Message sent by forum member 'abenz']
View Post: http://forums.java.net/node/818691