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 reaaaaaaally 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]>

Reply via email to