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
This commit is contained in:
Brian Clozel 2016-02-17 16:48:28 +01:00
parent 513c1ea3d9
commit ac3847bf4a
1 changed files with 1 additions and 1 deletions

View File

@ -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>
*/