You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "gdilem@libero.it" <gd...@libero.it> on 2005/01/28 11:02:26 UTC

tomcat caching problem

Hi all
I geerate in a Struts Action servlet a file that I want to open directly in a new browser.
I give tomcat the right url and the file is properly generated.
But tomcat does not see it.
after shoutdown and restart Tomcat start to see the file.That's for sure not what I want.
Actually I've done this kind of code in my action servlet
                response.setContentType("text/richtext");
                response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
                response.setHeader("Pragma","no-cache"); //HTTP 1.0
                response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

Nothing change!
Help!



____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



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