OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.16k stars 598 forks source link

Client side HTTP Cache support for JAX-RS Client and (possibly) MP Rest Client #13274

Open andymc12 opened 4 years ago

andymc12 commented 4 years ago

Today, users can really only take advantage of HTTP caching by implementing their own client filters. It would be nice to have a built-in mechanism for caching HTTP responses for JAX-RS / MP Rest Client.

Here is a great resource for understanding HTTP caching in JAX-RS: https://dennis-xlc.gitbooks.io/restful-java-with-jax-rs-2-0-2rd-edition/content/en/part1/chapter11/caching.html

For a client implementation, it might be possible to implement a client response filter that handles 304s by looking up previously cached responses based on the eTag and/or URI. The feature would also need a mechanism to clear stale entries from the cache.

ggam commented 4 years ago

Glad to see I'm not the only one interested on this feature :D (#11404)

smartheye commented 2 years ago

is there any update?