You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by John Patterson <jd...@gmail.com> on 2007/11/01 03:47:29 UTC

Re: Stateless page and Pragma no-cache

That is already overridden by WebPage which adds the headers.  It  
also calls super which looks necessary.  So how can I override this  
but still have the Page.configureResponse() called?

On 31 Oct 2007, at 13:20, Matej Knopp wrote:

> Override Page.configureResponse() and add the flags you want there.
>
> -Matej
>
> On 10/31/07, John Patterson <jd...@gmail.com> wrote:
>> Hi,
>>
>> I notice that Pragma no-cache is set for every WebPage and I cannot
>> see how I can turn it off for my bookmarkable stateless pages could
>> would benefit from being cached.
>>
>> Cheers,
>>
>> John
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Stateless page and Pragma no-cache

Posted by John Patterson <jd...@gmail.com>.
On 1 Nov 2007, at 02:38, Johan Compagner wrote:

> you are right thats not handy.
> I made it just like we do with resources
> have a special overridable protected method that is called  
> setHeaders() on
> WebPage
>
> Can you open an jira issue for this so that this is being shown as  
> a change?
>

https://issues.apache.org/jira/browse/WICKET-1122

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Stateless page and Pragma no-cache

Posted by Johan Compagner <jc...@gmail.com>.
you are right thats not handy.
I made it just like we do with resources
have a special overridable protected method that is called setHeaders() on
WebPage

Can you open an jira issue for this so that this is being shown as a change?

johan



On 11/1/07, John Patterson <jd...@gmail.com> wrote:
>
> That is already overridden by WebPage which adds the headers.  It
> also calls super which looks necessary.  So how can I override this
> but still have the Page.configureResponse() called?
>
> On 31 Oct 2007, at 13:20, Matej Knopp wrote:
>
> > Override Page.configureResponse() and add the flags you want there.
> >
> > -Matej
> >
> > On 10/31/07, John Patterson <jd...@gmail.com> wrote:
> >> Hi,
> >>
> >> I notice that Pragma no-cache is set for every WebPage and I cannot
> >> see how I can turn it off for my bookmarkable stateless pages could
> >> would benefit from being cached.
> >>
> >> Cheers,
> >>
> >> John
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>