tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Klop <ronald-mailingl...@base.nl>
Subject Re: How do I get an intermediary proxy from caching?
Date Tue, 31 Aug 2004 19:06:21 GMT
Yes. To be precise: you have to set the headers before Tomcat flushes its outputbuffer for
the first time. To be save, just set headers, than output html.

Ronald,

On Tue Aug 31 20:10:13 CEST 2004 "yem@yemtech.com" <yem@yemtech.com> wrote:
> Must you do this as one of the first things you do, before you output any
> html?
> 
> -- 
> Christopher Cullum
> ccullum@yemtech.com
> 
> John Gentilin said:
> >When I am battling against IE caching or proxy caching, I add the
> >following lines
> >to my response header. A bit brute force but it seems to work, althought
> >I think
> >it cause some issues when backing up on a form, forcing a reload.
> >
> >response.setHeader("Cache-Control",
> >"no-cache,max-age=0,must-revalidate");
> >response.setHeader("Pragma", "no-cache");
> >response.setHeader("Expires", "-1d");
> >
> >yem@yemtech.com wrote:
> >
> >>Hello all,
> >>I have taken a cursory look at the documentation for tomcat 5.x and I
> >>could not see how to get intermediary proxy's from caching my web page.
> >>I have the tags:
> >><meta http-equiv="pragma" content="no-cache">
> >><meta http-equiv="cache-control" content="no-cache">
> >><META HTTP-EQUIV="Expires" CONTENT="Wed, 01 Sep 2004 17:52:51 GMT">
> >>
> >>in my head section, but the proxy still caches my page. I read
> >>somewhere to put the cache-control:no-cache in the http header of the
> >>request, but I could not find how to do this in tomcat. Any help would
> >>be appreciated.
> >>
> >>
> >>
> >
> >
> >
> >--------------------------------------------------------------------- To
> >unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For
> >additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message