Is it possible to set ETags using JAX-RS without resorting to Response objects?

前端 未结 3 494
心在旅途
心在旅途 2021-02-04 10:21

In one of the few questions (with answers) I have found on SO regarding JAX-RS and caching, the answer to generating ETags (for caching) is by setting some values on the Respons

3条回答
  •  长情又很酷
    2021-02-04 10:36

    You might consider using a Response Filter for that. I developed a smell library doing exactly what you are looking for: https://github.com/tobilarscheid/jaxrs-etag-filter

提交回复
热议问题