<%
/** stop browser from caching, from the Resin FAQ www.caucho.com */
response.setHeader("Cache-Control","no-cache,post-check=0,pre-check=0");
response.setHeader("Pragma","no-cache");
response.setHeader("E
Better to use:
<%
/** stop browser from caching, from the Resin FAQ www.caucho.com */
response.setHeader("Cache-Control","no-cache,post-check=0,pre-check=0");
response.setHeader("Pragma","no-cache");
response.setHeader("Expires","T
hi list,
i tried to place this into one of my JSP page that i want to disable
cache, cause i have an image that is created dynamically. the problem is
when i access my web server, the browser displays HTTP 404 error or File
not found.
<%
response.setHeader("Cache-Control","
-
From: "Amit Ghaste" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 11, 2002 6:06 PM
Subject: Re: no cache
> sorry but i havnt gone thro all the replies
>
> that is a known bug in IE 5.0(ref microsoft website) dont remember the
exact
> url s
sorry but i havnt gone thro all the replies
that is a known bug in IE 5.0(ref microsoft website) dont remember the exact
url sorry
but they (microsoft) say that put the same no-cache meta tag at the end of
the html i think in a seperate html tags...
put a search of microsoft site for cache
hope
Oh, I misunderstood you.
You were right.
Thanks Jerson!
~ Troy ~
-Original Message-
From: Chua, Jerson [mailto:Jerson.Chua@;VIEWPOINT.COM]
Sent: Monday, November 11, 2002 5:42 PM
To: [EMAIL PROTECTED]
Subject: Re: no cache
The users don't need to do that since your page n
ember 11, 2002 5:39 PM
To: [EMAIL PROTECTED]
Subject: Re: no cache
Now that works, but I don't think users are going to want to do that
everytime a page of data loads :-(
-Original Message-
From: Chua, Jerson [mailto:Jerson.Chua@;VIEWPOINT.COM]
Sent: Monday, November 11, 2002
Eureka!
That was it.
Steve, you da man!
thanks for all the help.
~ Troy ~
-Original Message-
From: Steven A. Martin [mailto:steven@;PANTHEON-INC.COM]
Sent: Monday, November 11, 2002 5:40 PM
To: [EMAIL PROTECTED]
Subject: Re: no cache
Troy, make sure to delete your local cache
Troy, make sure to delete your local cache. Since that was originally
cached that can still cause a problem.
- Original Message -
From: "Campano, Troy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 11, 2002 5:35 PM
Subject: Re: no cache
>
Now that works, but I don't think users are going to want to do that everytime a page
of data loads :-(
-Original Message-
From: Chua, Jerson [mailto:Jerson.Chua@;VIEWPOINT.COM]
Sent: Monday, November 11, 2002 5:35 PM
To: [EMAIL PROTECTED]
Subject: Re: no cache
Do a shift-re
Do a shift-refresh (forced refresh) on IE then try it again.
-Original Message-
From: Campano, Troy [mailto:Troy.Campano@;LIBERTYMUTUAL.COM]
Sent: Monday, November 11, 2002 5:32 PM
To: [EMAIL PROTECTED]
Subject: Re: no cache
Nope, it's still storing in the cache :-(
-Ori
PROTECTED]
Subject: Re: no cache
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires",
-1); //prevents caching at the proxy server
==
Nope, it's still storing in the cache :-(
-Original Message-
From: Chua, Jerson [mailto:Jerson.Chua@;VIEWPOINT.COM]
Sent: Monday, November 11, 2002 5:26 PM
To: [EMAIL PROTECTED]
Subject: Re: no cache
try no-store instead of no-cache
-Original Message-
From: Campano,
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1); //prevents caching at the proxy
server
===
try setting the expires header to 0
-Priscilla
-Original Message-
From: Campano, Troy [mailto:Troy.Campano@;LIBERTYMUTUAL.COM]
Sent: Monday, November 11, 2002 2:25 PM
To: [EMAIL PROTECTED]
Subject: no cache
Hi,
I'm using a header file and include it in all my JSPs with JSP includ
try no-store instead of no-cache
-Original Message-
From: Campano, Troy [mailto:Troy.Campano@;LIBERTYMUTUAL.COM]
Sent: Monday, November 11, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: no cache
Hi,
I'm using a header file and include it in all my JSPs with JSP include.
In the tag
Hi,
I'm using a header file and include it in all my JSPs with JSP include.
In the tag of my header file I have these lines:
Even though I have these lines, my browser (IE 5.0) still caches pages I get from the
database.
Any ideas how I can fix this?
This is a big problem when I need my dat
Hello, everybody!
I have carried out additional tests and found out
that I was wrong:
JX> response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
JX> response.setHeader("Pragma","no-cache"); //HTTP 1.0
AT> if ... they work -
AT> (and
Atilio Ranzuglia wrote:
>
> You are saying that meta-tags are unreliable, but also
> you are saying that "Pragma" and "Cache-control" works
> fine. Well, what you should know is that "Pragma" and
> "Cache-control" are meta-tags!!! :O
>
There's a difference between putting the cache-control
infor
Here is an article I wrote on this:
http://www.orionsupport.com/articles/defeatingcache.html
Original Message Follows
From: Atilio Ranzuglia
Reply-To: A mailing list about Java Server Pages specification and reference
To: [EMAIL PROTECTED]
Subject: Re: No Cache on JSP Page
Date: Mon, 6
thoughts on this?
>
> Other people may have different information, but
> from what I've read (I haven't
> personally tested this), using meta tags to prevent
> caching is unreliable.
> You're better off using headers to specify this.
> You can set these directly i
check out CacheOff tag from Coldjava's taglib:
http://www.servletsuite.com/jsp.htm
--
Coldjava - server-side Java components
http://www.servletsuite.com
__
Your favorite stores, helpful shopping tools and great gift ideas. Experi
ion, but from what I've read (I haven't
personally tested this), using meta tags to prevent caching is unreliable.
You're better off using headers to specify this. You can set these directly in
the JSP page.
In particular (I think these are correct), specify "Pragma: no-cache" f
--
-Original Message-
From: Pepper, Josh [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 3:22 PM
To: [EMAIL PROTECTED]
Subject: Re: No Cache on JSP Page
-Original Message-
From: Conyers, Dwayne [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 1:21 PM
To
-Original Message-
From: Conyers, Dwayne [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 1:21 PM
To: [EMAIL PROTECTED]
Subject: Re: No Cache on JSP Page
Which meta tags are you using?
©¿©¬
= I made magic once.
Now, the sofa is gone.
http
Which meta tags are you using?
©¿©¬
= I made magic once.
Now, the sofa is gone.
http://www.dwacon.com
==To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL P
: [EMAIL PROTECTED]
Subject: No Cache on JSP Page
Hey, all.
Trying to prevent a login page from caching, and the usual meta-tags
don't seem to be working. Anyone have any thoughts on this?
"YOU connect the dots. YOU pick up the pieces." - Laurie Anderson
Joshua Peppe
Hey, all.
Trying to prevent a login page from caching, and the usual meta-tags
don't seem to be working. Anyone have any thoughts on this?
"YOU connect the dots. YOU pick up the pieces." - Laurie Anderson
Joshua Pepper
Web Architect
www.hsx.com
323-822-2460
[EMAIL PROTECTED]
===
sable the Back Button in IE with
> response.setHeader?
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 17, 2000 6:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to set the no-cache option for IE
>
>
>
Can i disable the Back Button in IE with response.setHeader?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 6:00 AM
To: [EMAIL PROTECTED]
Subject: Re: How to set the no-cache option for IE
try with
response.setHeader
Try this:
response.setHeader("Pragma", "no-cache");
response.setHeader( "Cache-Control","no-cache" );
response.setHeader( "Cache-Control","no-store" );
response.setDateHeader( "Expires", 0 )
Hello!
It does not work even with NN4.7. I tried it with both the browser but both of them
seem to take the page from the cache.
Manish
prasanna ganesan wrote:
> Hi
> I am trying to set the no-cache option in JSP by using
>
> response.setHeader("Cache-C
try with
response.setHeader("pragma", "no-cache"); // no caching
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires",-1);
> Hi
> I am trying to set the no-cache option in JSP by us
Hi
I am trying to set the no-cache option in JSP by using
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setHeader(&q
Stuart Maclean,
It will be nice if you can give me your code.
I am also facing the same problems.I am having a form(jsp page) which will
take data entered by user and then call other jsp page which will just
display a gif file.Actualy we are generating a gif file and the text entered
by previous
nal Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of He Huan
> Sent: Friday, 14 April 2000 8:00
> To: [EMAIL PROTECTED]
> Subject: Re: JSP no-cache problem on IE 5
>
>
> Hi, Scott,
>
> Tha
April 2000 8:00
To: [EMAIL PROTECTED]
Subject: Re: JSP no-cache problem on IE 5
Hi, Scott,
Thanks for your reply, but I had ever tried the tag before,
it doesn't work either. Based on the docs for IE 5, this tag is ignored
over IE 4 & 5 without https connection.
Thanks,
Huan
On Thu, 13 A
gt; my JSP
> >code, but it doesn't work at all. Just wonder who knows what the problem is ?
> >My java web server is Apache + JRun.
> >
> ><%
> >response.setHeader("Cache-Control", "no-cache&
but it doesn't work at all. Just wonder who knows what the problem is ?
>My java web server is Apache + JRun.
>
><%
>response.setHeader("Cache-Control", "no-cache");
>response.setHeader("Pragma", &qu
JRun.
<%
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "-1");
%>
Thanks,
Huan
40 matches
Mail list logo