you could also use a filter for your whole app that does that, if you want all your app "non-cached", same rules apply....

Ronald Klop escribió:

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]




-- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to