Browse Source

Clarify Javadoc for CacheControl.noCache,noStore

This change makes clear that this is the intent of the CacheControl API
not to provide a way to configure both "no-cache" and "no-store"
directives for the "Cache-Control" header.

Issue: SPR-13780
pull/968/head
Brian Clozel 9 years ago
parent
commit
ac3847bf4a
  1. 2
      spring-web/src/main/java/org/springframework/http/CacheControl.java

2
spring-web/src/main/java/org/springframework/http/CacheControl.java

@ -114,7 +114,7 @@ public class CacheControl { @@ -114,7 +114,7 @@ public class CacheControl {
* clients sending conditional requests (with "ETag", "If-Modified-Since" headers) and the server responding
* with "304 - Not Modified" status.
* <p>In order to disable caching and minimize requests/responses exchanges, the {@link #noStore()} directive
* should be used.
* should be used instead of {@link #noCache()}.
* @return {@code this}, to facilitate method chaining
* @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.2">rfc7234 section 5.2.2.2</a>
*/

Loading…
Cancel
Save