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 "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
Must you do this as one of the first things you do, before you output any html?
-- Christopher Cullum [EMAIL PROTECTED]
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"); > >[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
