This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes problem in caching jsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

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
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Duplicate of:
http://www.coderanch.com/t/292444/JSP/java/browser-not-cached

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: problem in caching jsp pages
 
Similar Threads
How to load JSP dynamically using mapping.findForward()
jsp
JSP not refreshing
Data in JS Page is not being displayed
remove the data from cache