problem with these utils is discoverability. unless we make Header a
type that setHeaders take im sure most users will just write a string
and glance over the util. i would wait until we can make it an enum.
-igor
On Fri, Feb 15, 2008 at 10:48 AM, James Carman
<[EMAIL PROTECTED]> wrote:
> Perhaps we could set up some utility class for these hard-coded
> values. Something like...
>
> HeaderUtils.setCacheControl(HeaderUtils.CACHE_NO_STORE);
>
> If we're JDK5+, then I'd make a CacheControl enum maybe.
>
>
>
> On 2/15/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > response.setHeader("Cache-Control", "no-store");
> >
> >
> > -igor
> >
> >
> >
> > On Fri, Feb 15, 2008 at 10:44 AM, cemeterygate <[EMAIL PROTECTED]> wrote:
> > >
> > > i overload the setHeads method but still no luck.
> > > response.setHeader("Pragma", "no-cache");
> > > response.setHeader("Cache-Control", "no-cache,
> max-age=0,must-revalidate,
> > > no-store");
> > >
> > > i had the impressied that i must change the url (maybe by adding
> anchor has)
> > > when search result panel is freshed in order for IE to cache the page
> > > correctly. But I don't mind some quick workaround if there is any.
> thanks
> > >
> > >
> > >
> > >
> > > Matej Knopp-2 wrote:
> > > >
> > > > Problem is that your browser is caching a wrong version of DOM tree.
> > > > You need to serve the pages with Cache-Control: no-store to force
> > > > browser reload the page on back button. See
> > > > WebPage#setHeaders(WebResponse response).
> > > >
> > > > -Matej
> > > >
> > > > On Fri, Feb 15, 2008 at 6:14 PM, cemeterygate <[EMAIL PROTECTED]>
> > > > wrote:
> > > >>
> > > >> I am using AjaxSelfUpdatingTimerBehavior to refresh the search
> result
> > > >> panel.
> > > >> I go to one of the search result, then hit back button, the search
> > > >> result
> > > >> panel is disappear. I thought back button is supported by wicket
> > > >> natively,
> > > >> but appearantly it doesn't in this case. So, what's the work around
> > > >> folks.
> > > >> please help. Thanks
> > > >> --
> > > >> View this message in context:
> > > >>
> http://www.nabble.com/back-button-issue-with-AjaxSelfUpdatingTimerBehavior%2C-anyone-had-the-same-problem--tp15503953p15503953.html
> > > >> Sent from the Wicket - User mailing list archive at Nabble.com.
> > > >>
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Resizable and reorderable grid components.
> > > > http://www.inmethod.com
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> http://www.nabble.com/back-button-issue-with-AjaxSelfUpdatingTimerBehavior%2C-anyone-had-the-same-problem--tp15503953p15507601.html
> > >
> > >
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
>
> ---------------------------------------------------------------------
> 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]