I exposed some resources (non functional) as endpoints in the actuator, the clients use the cache headers to know how much time they are going to keep that resource cached and avoid repeated calls.

I would like to use a @WebEndpoint instead of @RestEndpointController with just a configuration or an annotation.

Could time-to-live affect response headers? could you offer a new configuration just for that?