You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ywtsang <yw...@gmail.com> on 2008/09/01 05:54:51 UTC
how to mark "wicket html response" as "cacheable"?
i want to set my html with "last modified date" in order to allow client side
caching
how can we do that in wicket?
or we need to manipulate the response header directly?
--
View this message in context: http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19248592.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: how to mark "wicket html response" as "cacheable"?
Posted by ywtsang <yw...@gmail.com>.
yes, our pages basically are dynamic as the pages contain ajax component
we plan to do that for the optimization of "non-javascript" clients like
crawlers
we try to define a "page modification" logic and implement the "304 not
modified" in order to save the bandwidth or so
if it is not supported by wicket now, we will look for our solution, thanks
Johan Compagner wrote:
>
> Why would you do that? That should only be done in a head request.
> But currently i dont think we have support for webpages last modified
> request at the moment.
>
> Problem is that wickets pages are really dynamic, make sure that yours
> are really static dont use ajax and that stuff on them because if a
> browser really caches stuff i dont know if then everything is always
> in sync.
>
> On 9/1/08, ywtsang <yw...@gmail.com> wrote:
>>
>> thanks
>>
>> how about "skipping" the content rendering?
>>
>> i.e. how to just make the web page's response to include the headers
>> only?
>>
>>
>> jWeekend wrote:
>>>
>>> One way is to override WebPage's setHeaders(WebResponse response) method
>>> and call setHeader on the passed in WebResponse.
>>>
>>> Regards - Cemal
>>> http://www.jWeekend.co.uk http://jWeekend.co.uk
>>>
>>>
>>> ywtsang wrote:
>>>>
>>>> i want to set my html with "last modified date" in order to allow
>>>> client
>>>> side caching
>>>>
>>>> how can we do that in wicket?
>>>>
>>>> or we need to manipulate the response header directly?
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19249443.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
--
View this message in context: http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19264551.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: how to mark "wicket html response" as "cacheable"?
Posted by Johan Compagner <jc...@gmail.com>.
Why would you do that? That should only be done in a head request.
But currently i dont think we have support for webpages last modified
request at the moment.
Problem is that wickets pages are really dynamic, make sure that yours
are really static dont use ajax and that stuff on them because if a
browser really caches stuff i dont know if then everything is always
in sync.
On 9/1/08, ywtsang <yw...@gmail.com> wrote:
>
> thanks
>
> how about "skipping" the content rendering?
>
> i.e. how to just make the web page's response to include the headers only?
>
>
> jWeekend wrote:
>>
>> One way is to override WebPage's setHeaders(WebResponse response) method
>> and call setHeader on the passed in WebResponse.
>>
>> Regards - Cemal
>> http://www.jWeekend.co.uk http://jWeekend.co.uk
>>
>>
>> ywtsang wrote:
>>>
>>> i want to set my html with "last modified date" in order to allow client
>>> side caching
>>>
>>> how can we do that in wicket?
>>>
>>> or we need to manipulate the response header directly?
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19249443.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: how to mark "wicket html response" as "cacheable"?
Posted by ywtsang <yw...@gmail.com>.
thanks
how about "skipping" the content rendering?
i.e. how to just make the web page's response to include the headers only?
jWeekend wrote:
>
> One way is to override WebPage's setHeaders(WebResponse response) method
> and call setHeader on the passed in WebResponse.
>
> Regards - Cemal
> http://www.jWeekend.co.uk http://jWeekend.co.uk
>
>
> ywtsang wrote:
>>
>> i want to set my html with "last modified date" in order to allow client
>> side caching
>>
>> how can we do that in wicket?
>>
>> or we need to manipulate the response header directly?
>>
>>
>
>
--
View this message in context: http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19249443.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: how to mark "wicket html response" as "cacheable"?
Posted by jWeekend <jw...@cabouge.com>.
One way is to override WebPage's setHeaders(WebResponse response) method and
call setHeader on the passed in WebResponse.
Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk
ywtsang wrote:
>
> i want to set my html with "last modified date" in order to allow client
> side caching
>
> how can we do that in wicket?
>
> or we need to manipulate the response header directly?
>
>
--
View this message in context: http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19248671.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org