tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Durham David Cntr 805CSS/SCBE" <David.Durh...@scott.af.mil>
Subject RE: problems with browser cache
Date Wed, 04 Sep 2002 14:38:01 GMT
Try using response.setHeader("Cache-control", "no-cache")  and response.setHeader("expires",
"-1");  That should work.

> -----Original Message-----
> From: Christian J. Dechery [mailto:christian@finep.gov.br]
> Sent: Wednesday, September 04, 2002 9:28 AM
> To: tomcat-user@jakarta.apache.org
> 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
> .:| christian@finep.gov.br
> .:| (21) 2555-0332
> 
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message