problems with browser cache

2002-09-04 Thread Christian J. Dechery

How can I prevent the broswer from using the cache when loading a JSP with a 100% 
certainty?
 
I'm experiencing a reaaally weird cache problem... I have a page that includes 
items in table, and when an item is included it reloads itself so the new item can be 
shown, but sometimes the new item shows, and sometimes it doesn't... I even play with 
the refresh because it's completely random.
 
Even if I delete the item, it sometimes still shows...
 
I put this line at the top of my JSP but it seems not to acomplish anything...
% response.setHeader (Pragma, no-cache); %
 
any ideas??
 
thanks
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




RE: problems with browser cache

2002-09-04 Thread Durham David Cntr 805CSS/SCBE

Try using response.setHeader(Cache-control, no-cache)  and 
response.setHeader(expires, -1);  That should work.

 -Original Message-
 From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 04, 2002 9:28 AM
 To: [EMAIL PROTECTED]
 Subject: problems with browser cache
 
 
 How can I prevent the broswer from using the cache when 
 loading a JSP with a 100% certainty?
  
 I'm experiencing a reaaally weird cache problem... I have 
 a page that includes items in table, and when an item is 
 included it reloads itself so the new item can be shown, but 
 sometimes the new item shows, and sometimes it doesn't... I 
 even play with the refresh because it's completely random.
  
 Even if I delete the item, it sometimes still shows...
  
 I put this line at the top of my JSP but it seems not to 
 acomplish anything...
 % response.setHeader (Pragma, no-cache); %
  
 any ideas??
  
 thanks
  
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: problems with browser cache

2002-09-04 Thread Tim Funk

Added a bogus parameter to the URL which guarantees a unique URL.
ex:
A HREF=foo.jsp?bogus=%System.currentTimeMillis()%Foo/A

Christian J. Dechery wrote:
 How can I prevent the broswer from using the cache when loading a JSP with a 100% 
certainty?
  
 I'm experiencing a reaaally weird cache problem... I have a page that includes 
items in table, and when an item is included it reloads itself so the new item can be 
shown, but sometimes the new item shows, and sometimes it doesn't... I even play with 
the refresh because it's completely random.
  
 Even if I delete the item, it sometimes still shows...
  
 I put this line at the top of my JSP but it seems not to acomplish anything...
 % response.setHeader (Pragma, no-cache); %
  
 any ideas??
  
 thanks
  
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]