ok, i understand.

Thanks for your help.
> Date: Mon, 11 Feb 2008 16:41:26 -0500
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: Cache Browser
> 
> Web development PCs should set the browsers to use the cache as little
> as possible.  Otherwise much time is wasted analyzing bugs that no
> longer exist but still appear because the browser has not refreshed.
> 
> The "reload" (Mozilla) or "refresh" (MSIE) command should force
> browsers to ignore cache and retrieve the entire page from the server.
>  This is not always effective.
> 
> You can also use the HTTP Header:
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
> MSIE ignored this in early versions.  I forget when I tested, probably
> MSIE 3 or 5.  I have not tested more recent browsers.  The
> HttpCacheAction sets the Last-Modified, Expires and Cache-Control
> Headers, but not the old no-cache header (replaced by the
> Cache-Control header.)
> 
> I use the same port for several Cocoon apps without problem, but I do
> not switch often and probably recompile before starting each server.
> 
> As Tobia stated, your best option is to use different ports.  Browsers
> are not designed to handle pages changing without using a more recent
> modification time.
> 
> solprovider
> 
> On 2/11/08, alexandre mazouz <[EMAIL PROTECTED]> wrote:
> >  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: [EMAIL PROTECTED]
> > > To: [email protected]
> > > 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to