Your browser is probably caching the page.

Add this to your jsp page:

<%
    response.setHeader("Cache-Control","no-store"); //HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setDateHeader ("Expires", 0); //prevents caching at the proxy
server
%>


-----Original Message-----
From: Wendell Nichols [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 7:13 AM
To: Orion-Interest
Subject: getting a cached copy of jsp on reload 


Using Orion 1.5.2
When I redeploy an application and access a jsp page the first time I
can debug through jsp pages, and ejb's.  However when the first pass
through the code is finished, if I press reload on the browser it does
not go through my code.  It apears to get a chched copy of the page,
which displays instantly.
I am using Netscape browser, and Linux for a OS.  I have no caching
proxies, this is all happening on one machine.
If I make a minor modification to any file in the app (ear file) and
redeploy it, I get to debug again.

If this is the way it's suppose to work then it's a bug.  My jsp page
could very well be accessing constantly changing data in a database and
serving a cached copy is not the right thing to do, even one second from
the last access.

Is there a config parm I've missed?

Wendell Nichols


Reply via email to