JAX-RS REST service + EJB on WildFly 10, always adds no-cache HTTP header in responses
问题 I have wrote a stateless EJB that provides a rest service. I am working with the Wildfly 10 application server and developing with the Netbeans IDE. I have tried to cache the return values of few methods for few hours by adding a max-age header in the http-response of the service methods. Please consider this is a simplified version of my bean: @Stateless @DeclareRoles({"role1","role2"}) @RolesAllowed({"role1","role2"}) @Path("api-dummy") public class DummyApiREST { @EJB private StuffFacade