users@jersey.java.net

Re: [Jersey] Re: ResponseCache

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 22 Jul 2008 12:00:20 +0200

Marc Hadley wrote:
> On Jul 14, 2008, at 12:20 PM, Markus KARG wrote:
>>> http://blogs.sun.com/sandoz/entry/jersey_client_api
>>
>> thank you for pointing me to the Jersey Client API. If I will use that
>> API, will it internally handle Cache-Control? I mean, if the resource
>> was headed with a max-age of X, will it cache the resource locally on
>> the hard disk?
>>
> I'll have to defer to Paul Sandoz on the details of client-side caching.
> Paul is on vacation until next week.
>

The client API itself does not support caching, but you can write a
client filter that does.

In fact one developer is caching JAXB objects in memory (using ETag and
Last-Modified) to avoid not just network bandwidth but XML parsing and
JAXB processing as well.

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109