November 2017
Intermediate to advanced
420 pages
10h 29m
English
RESTEasy provides the @Cache and @NoCache annotations, following the JAX-RS specifications, with the @GET annotation for controlling the cache. These annotations can be applied at class and method levels.
The @NoCache annotation is used to specify when caching is not required; hence, the server needs to respond back with a fresh response for every request.
The @Cache annotation is used when the caching of a response is required. Given ahead is a brief list of attributes used to control the caching behavior. Take some time to refer to the previous chapter, which talks in detail about each of these attributes.