This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android 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
 
Consider Paul's rocket mass heater.
 
subject: problem in caching jsp pages
 
Similar Threads
remove the data from cache
Data in JS Page is not being displayed
How to load JSP dynamically using mapping.findForward()
JSP not refreshing
jsp