-
Bug
-
Resolution: Done
-
Major
-
2.2.0.ER1
-
False
-
False
-
+
-
-
GitHub issue: https://github.com/quarkusio/quarkus/issues/19822
When using org.jboss.resteasy.reactive.NoCache without attributes (not using the fields attribute), response headers do not contain Cache-Control: no-cache header.
package org.acme; import javax.ws.rs.GET; import javax.ws.rs.Path; import org.jboss.resteasy.reactive.NoCache; @Path("/hello") public class NoCacheResource { @GET @NoCache public String hello() { return "hello"; } }
curl --head http://localhost:8080/hello
Expected behavior
Response:
HTTP/1.1 200 OK Cache-Control: no-cache Content-Type: text/plain;charset=UTF-8
Actual behavior
Response:
HTTP/1.1 200 OK Content-Type: text/plain;charset=UTF-8
This is also inconsistent with the documentation:
https://quarkus.io/guides/resteasy-reactive#controlling-http-caching-features