Re: Re: ResponseCache

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: Re: ResponseCache

Paul Sandoz

Marc Hadley wrote:

> On Jul 14, 2008, at 12:20 PM, Markus KARG wrote:
>> 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.


| ? + ? = To question
    Paul Sandoz

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]