You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Krzysztof Podejma <kp...@gmail.com> on 2007/07/09 00:12:57 UTC

ResponseBrowserProxyNoCache for module

hello,
how can I run setResponseBrowserProxyNoCache method for all responses for my
module.
I get some issues with ZK and browser back button, so I have to turn off
caching.

Krzysztof Podejma

Re: ResponseBrowserProxyNoCache for module

Posted by Krzysztof Podejma <kp...@gmail.com>.
Yes, I thought about it and I think it is not an issue. This class is useful
only if you have problems with AJAX and have to disable cache for your
module(that use ZK AJAX in my case). Maybe wiki is more suitable place for
this? What do you think?

Krzysztof Podejma

2007/7/11, Jacques Le Roux <ja...@les7arts.com>:
>
> Krzysztof ,
>
> Did you think about creating a Jira issue (patch) ?
>
> Thanks
>
> Jacques
>
> De : "Krzysztof Podejma" <kp...@gmail.com>
> > I have written a Filter class which sets header for response and placed
> this
> > class into web.xml
> > Now it works.
> >
> > Krzysztof Podejma
> >
> > 2007/7/9, Jacques Le Roux <ja...@les7arts.com>:
> > >
> > > Sorry I don't use ZK and have no ideas about that...
> > >
> > > Jacques
> > >
> > > De : "Krzysztof Podejma" <kp...@gmail.com>
> > > > I have to set
> > > > >> httpResponse.setHeader("Pragma", "no-cache,no-store");
> > > > >> httpResponse.setHeader
> > > >
> > >
> ("Cache-Control","no-cache,no-store,must-revalidate,proxy-revalidate,max-age=0");
> > > > for response(based on comments in ML of ZK)
> > > >
> > > > when I disable cache in my Firefox everything works.
> > > > without that, I get Session Timeout... when browser back button is
> > > pressed
> > > > from "sendRedirect" page
> > > > this problem exists because I manage zk pages from controler.xml.
> Please
> > > > comment if you use another approach.
> > > > so is there a place ie. in web.xml to add/modify response headers?
> > > >
> > > > Krzysztof
> > > >
> > > > 2007/7/9, Jacques Le Roux <ja...@les7arts.com>:
> > > > >
> > > > > Not sure it's relevant, but did  you check cache.properties ?
> > > > >
> > > > > Jacques
> > > > >
> > > > > De : "Krzysztof Podejma" <kp...@gmail.com>
> > > > > > hello,
> > > > > > how can I run setResponseBrowserProxyNoCache method for all
> > > responses
> > > > > for my
> > > > > > module.
> > > > > > I get some issues with ZK and browser back button, so I have to
> turn
> > > off
> > > > > > caching.
> > > > > >
> > > > > > Krzysztof Podejma
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: ResponseBrowserProxyNoCache for module

Posted by Jacques Le Roux <ja...@les7arts.com>.
Krzysztof ,

Did you think about creating a Jira issue (patch) ?

Thanks

Jacques

De : "Krzysztof Podejma" <kp...@gmail.com>
> I have written a Filter class which sets header for response and placed this
> class into web.xml
> Now it works.
> 
> Krzysztof Podejma
> 
> 2007/7/9, Jacques Le Roux <ja...@les7arts.com>:
> >
> > Sorry I don't use ZK and have no ideas about that...
> >
> > Jacques
> >
> > De : "Krzysztof Podejma" <kp...@gmail.com>
> > > I have to set
> > > >> httpResponse.setHeader("Pragma", "no-cache,no-store");
> > > >> httpResponse.setHeader
> > >
> > ("Cache-Control","no-cache,no-store,must-revalidate,proxy-revalidate,max-age=0");
> > > for response(based on comments in ML of ZK)
> > >
> > > when I disable cache in my Firefox everything works.
> > > without that, I get Session Timeout... when browser back button is
> > pressed
> > > from "sendRedirect" page
> > > this problem exists because I manage zk pages from controler.xml. Please
> > > comment if you use another approach.
> > > so is there a place ie. in web.xml to add/modify response headers?
> > >
> > > Krzysztof
> > >
> > > 2007/7/9, Jacques Le Roux <ja...@les7arts.com>:
> > > >
> > > > Not sure it's relevant, but did  you check cache.properties ?
> > > >
> > > > Jacques
> > > >
> > > > De : "Krzysztof Podejma" <kp...@gmail.com>
> > > > > hello,
> > > > > how can I run setResponseBrowserProxyNoCache method for all
> > responses
> > > > for my
> > > > > module.
> > > > > I get some issues with ZK and browser back button, so I have to turn
> > off
> > > > > caching.
> > > > >
> > > > > Krzysztof Podejma
> > > > >
> > > >
> > >
> >
> 

Re: ResponseBrowserProxyNoCache for module

Posted by Krzysztof Podejma <kp...@gmail.com>.
I have written a Filter class which sets header for response and placed this
class into web.xml
Now it works.

Krzysztof Podejma

2007/7/9, Jacques Le Roux <ja...@les7arts.com>:
>
> Sorry I don't use ZK and have no ideas about that...
>
> Jacques
>
> De : "Krzysztof Podejma" <kp...@gmail.com>
> > I have to set
> > >> httpResponse.setHeader("Pragma", "no-cache,no-store");
> > >> httpResponse.setHeader
> >
> ("Cache-Control","no-cache,no-store,must-revalidate,proxy-revalidate,max-age=0");
> > for response(based on comments in ML of ZK)
> >
> > when I disable cache in my Firefox everything works.
> > without that, I get Session Timeout... when browser back button is
> pressed
> > from "sendRedirect" page
> > this problem exists because I manage zk pages from controler.xml. Please
> > comment if you use another approach.
> > so is there a place ie. in web.xml to add/modify response headers?
> >
> > Krzysztof
> >
> > 2007/7/9, Jacques Le Roux <ja...@les7arts.com>:
> > >
> > > Not sure it's relevant, but did  you check cache.properties ?
> > >
> > > Jacques
> > >
> > > De : "Krzysztof Podejma" <kp...@gmail.com>
> > > > hello,
> > > > how can I run setResponseBrowserProxyNoCache method for all
> responses
> > > for my
> > > > module.
> > > > I get some issues with ZK and browser back button, so I have to turn
> off
> > > > caching.
> > > >
> > > > Krzysztof Podejma
> > > >
> > >
> >
>

Re: ResponseBrowserProxyNoCache for module

Posted by Jacques Le Roux <ja...@les7arts.com>.
Sorry I don't use ZK and have no ideas about that...

Jacques

De : "Krzysztof Podejma" <kp...@gmail.com>
> I have to set
> >> httpResponse.setHeader("Pragma", "no-cache,no-store");
> >> httpResponse.setHeader
> ("Cache-Control","no-cache,no-store,must-revalidate,proxy-revalidate,max-age=0");
> for response(based on comments in ML of ZK)
> 
> when I disable cache in my Firefox everything works.
> without that, I get Session Timeout... when browser back button is pressed
> from "sendRedirect" page
> this problem exists because I manage zk pages from controler.xml. Please
> comment if you use another approach.
> so is there a place ie. in web.xml to add/modify response headers?
> 
> Krzysztof
> 
> 2007/7/9, Jacques Le Roux <ja...@les7arts.com>:
> >
> > Not sure it's relevant, but did  you check cache.properties ?
> >
> > Jacques
> >
> > De : "Krzysztof Podejma" <kp...@gmail.com>
> > > hello,
> > > how can I run setResponseBrowserProxyNoCache method for all responses
> > for my
> > > module.
> > > I get some issues with ZK and browser back button, so I have to turn off
> > > caching.
> > >
> > > Krzysztof Podejma
> > >
> >
> 

Re: ResponseBrowserProxyNoCache for module

Posted by Krzysztof Podejma <kp...@gmail.com>.
I have to set
>> httpResponse.setHeader("Pragma", "no-cache,no-store");
>> httpResponse.setHeader
("Cache-Control","no-cache,no-store,must-revalidate,proxy-revalidate,max-age=0");
for response(based on comments in ML of ZK)

when I disable cache in my Firefox everything works.
without that, I get Session Timeout... when browser back button is pressed
from "sendRedirect" page
this problem exists because I manage zk pages from controler.xml. Please
comment if you use another approach.
so is there a place ie. in web.xml to add/modify response headers?

Krzysztof

2007/7/9, Jacques Le Roux <ja...@les7arts.com>:
>
> Not sure it's relevant, but did  you check cache.properties ?
>
> Jacques
>
> De : "Krzysztof Podejma" <kp...@gmail.com>
> > hello,
> > how can I run setResponseBrowserProxyNoCache method for all responses
> for my
> > module.
> > I get some issues with ZK and browser back button, so I have to turn off
> > caching.
> >
> > Krzysztof Podejma
> >
>

Re: ResponseBrowserProxyNoCache for module

Posted by Jacques Le Roux <ja...@les7arts.com>.
Not sure it's relevant, but did  you check cache.properties ?

Jacques

De : "Krzysztof Podejma" <kp...@gmail.com>
> hello,
> how can I run setResponseBrowserProxyNoCache method for all responses for my
> module.
> I get some issues with ZK and browser back button, so I have to turn off
> caching.
> 
> Krzysztof Podejma
>