cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexandre mazouz <alma2...@hotmail.com>
Subject RE: Cache Browser
Date Mon, 11 Feb 2008 21:06:20 GMT

Thank you for your help.

Your tip works well when you want to switch from A to B or B to A.

But if A is older than B, i will be able to switch from A to B but not B to A.

Is it possible to bypass this problem ?

Thanks,
Alexandre
> From: tobia.conforto@linux.it
> To: users@cocoon.apache.org
> Subject: Re: Cache Browser
> Date: Mon, 11 Feb 2008 17:20:11 +0100
> 
> alexandre mazouz wrote:
> > I have 2 web applcations A and B in localhost with the same adress  
> > and ports (127.0.0.1:8080\) in 2 server jetty (J1 and J2).
> > i close A and launch B i have A.
> > The only way to have B is to clean the cache of the browser.
> 
> You might try to define an action that sets the relevant HTTP headers  
> to prevent caching in the browser:
> 
> 	<map:action name="no-cache"  
> src="org.apache.cocoon.acting.HttpCacheAction"/>
> 
> and call it at the beginning of your pipelines (even before any  
> <map:match>, if you want it to affect every request):
> 
> 	<map:act type="no-cache"/>
> 
> Although in your case I would simply change the port of one of your  
> servers, as the browser cache has its uses.
> 
> 
> Tobia
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Mime
View raw message