Meaningless Drivel is fun!
The moose likes JSP and the fly likes problem in caching jsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

problem in caching jsp pages

biswajit ray
Ranch Hand

Joined: Nov 30, 2005
Posts: 30
i m facing a problem in caching the jsp page. i have written the code like

// issue HTTP directives such that this page is not cached
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
which means it will prevent the caching of jsp pages.But it is caching the jsp page. Please help me in this regard.

it is very urgent.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Duplicate of:

Please don't ask the same question multiple times.
Spreading the conversation out over different threads creates confusion, results in duplication of effort and, in general annoys the people who are trying to help you.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: problem in caching jsp pages
It's not a secret anymore!