You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Christophe MESTRALLET <cm...@axemble.com> on 2001/09/28 20:39:52 UTC

Proxy cache problem

Hello,
I have the following problem :
I am using Jetspeed behind a proxy server. 
Unfortunately, the proxy server serves cached files.
I want to add something like :
 response.setHeader("Pragma", "no-cache"); 
 response.setHeader("Cache-Control", "no-cache"); 
 response.setDateHeader("Expires", 0); 

on the response but I don't know were to put these instructions....

could you please help me ?

Thanks.


Christophe Mestrallet
cmestrallet@axemble.com


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


Re: Proxy cache problem

Posted by Paul Spencer <pa...@mikon.com>.
Christophe,
If your proxy server will use <meta> data in the page, then the
following to the <head> element of
WEB-INF/templates/vm/html/.../default.vm
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />

Paul Spencer

Christophe MESTRALLET wrote:
> 
> Hello,
> I have the following problem :
> I am using Jetspeed behind a proxy server.
> Unfortunately, the proxy server serves cached files.
> I want to add something like :
>  response.setHeader("Pragma", "no-cache");
>  response.setHeader("Cache-Control", "no-cache");
>  response.setDateHeader("Expires", 0);
> 
> on the response but I don't know were to put these instructions....
> 
> could you please help me ?
> 
> Thanks.
> 
> Christophe Mestrallet
> cmestrallet@axemble.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

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